Skip to content

Commands

Retro Jack edited this page Mar 26, 2026 · 13 revisions

Commands

LGR-DOS supports a subset of DOS commands plus some easter eggs. Commands are case-insensitive. Multiple commands can be chained with & (e.g. cd\games & dir/w/o).

Navigation

Command Description
dir List current directory (details view)
dir /w List current directory (wide view)
dir /o List sorted alphabetically
dir /w /o Wide + sorted
cd <dir> Change directory
cd .. Go up one directory
cd \ Go to drive root
cls Clear the screen

Files

Command Description
<filename> Execute a file (opens link or runs .bat)
type <file> Print file contents to screen

Display

Command Description
echo <text> Print text to screen
echo off Suppress prompt display (used in batch scripts)
echo on Restore prompt display
setcol <BF> Set colors — two hex digits: background and foreground (e.g. setcol 07 = black bg, white fg)

Stubs (humorous responses)

Command Response
exit "I'm sorry, Dave, I'm afraid I can't do that."
del "File(s) too important for me to allow you to jeopardize."
rmdir "Bad command or go away."
format "Specified drive does not exist. Anarchist."
chkdsk "Checking... Yep, that's a disk."
edlin "Whoa now, this is LGR-DOS not MS-DOS!"
edit "Illegal command: edit."
debug "Program terminated normally (0000)"
attrib "A ttrib is a terrible thing to waste."
quit "You're just gonna quit, huh? Good luck with that."
help Usage hint

Easter Eggs

Command Effect
lgr Sets text color to green
zerocool Sets colors to cyan-on-blue, prints "HACK THE PLANET!"
dopefish Renders the Dopefish in block characters

Keyboard Shortcuts

Key Action
Enter Submit command
Backspace Delete last character
Previous command in history
Next command in history

Clone this wiki locally