This document is public domain.
No information should be added that is not public domain.
Kenneth J Davis <jeremyd@computer.org> 2002, 2003

[] optional argument (repeated 0 or 1)
{} optional argumnet (repeated 0 or more times)
a|b either option a or option b should be used
<file> represents [drive:][path][filename]
For Windows 2000 & later users, a folder is equivalent to a directory.
FD: indicates FreeDOS specific extensions or ommissions

 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
----------------------------------------------------------------------------
command name
command syntax, one or more lines for each unique usage if needed for clarification
FD: any FreeDOS specific notes

command description/overview
internal/external, filename
minimal DOS version required

command options and explanations

Examples:
example usage
example's explanation
additional examples

additional notes or details if needed
----------------------------------------------------------------------------

ansi [nansi]
assign
attrib
backup
break (I)
call (I)
chcp (I)
chdir/cd (I)
chkdsk
choice
cls (I)
command.com [FreeCom]
comp
copy (I)
country [???]
ctty
date (I)
debug
defrag
deltree
dir (I)
diskcomp
diskcopy
display
echo (I)
edit
edlin
emm386
erase/del (I)
exe2bin
exit (I)
fasthelp
fc
fdisk
find
for (I)
format
goto (I)
graftabl
graphics
himem [fdxms/fdxms286]
help [htmlhelp]
if (I)
join [swsubst, see also subst]
keyb [keyb/mkeyb/xkeyb]
label
lfnfor (Win32)
loadhigh/lh
lock (Win32)
mem
mirror
mkdir/md (I)
mode
more
move
mscdex [fdcdex/shsucdex]
nlsfunc
path (I)
pause (I)
print
prompt (I)
ramdisk [tdisk/bitdisk]
replace
restore
rem/:: (I)
rename/ren (I)
rmdir/rd (I)
scandisk
set (I)
share
shift (I)
sort
subst [swsubst, see also join]
sys
time (I)
tree
truename (I)
type (I)
undelete
unlock (Win32)
ver (I)
verify (I)
vol (I)
xcopy


----------------------------------------------------------------------------
ansi [nansi]

Adds ANSI terminal emulation support to the CONsole device.  See nansi.doc for more details, including ANSI escape codes.

external ansi.sys
external, nansi.sys
requires DOS 2.0+

ansi
DEVICE=[drive:][path]ANSI.SYS [/X] [/K] [/R]

/X remaps extended keys independently on extended (101/102 key) keyboards
/K treat extended keyboard as 84 key keyboard
/R adjust line scrolling to improve readability with screen reading programs

nansi
DEVICE=[drive:][path]NANSI.SYS [/X] [/K] [/S] {/Tnn}

/X remaps extended keys independently on extended (101/102 key) keyboards, that is, allow remapping of physically distinct (or at least generates a unique extended scancode) but otherwise logically same key (e.g. home on numeric pad versus separate [gray] home key)
/K force use of extended keyboard, specifically force use of extended keyboard BIOS interface that allows detection of F11/F12 and other extended (in comparison to 84 key keyboards) keys
/S secure mode, disables keyboard redefinitions
/Tnn indicates that mode nn (00-FF hex) of your video card is a text mode

FD: nansi.sys is the ANSI console driver included with FreeDOS

----------------------------------------------------------------------------
assign
command syntax, one or more lines for each unique usage if needed for clarification
FD: any FreeDOS specific notes

command description/overview
internal/external, filename
minimal DOS version required

command options and explanations

Examples:
example usage
example's explanation
additional examples

additional notes or details if needed
----------------------------------------------------------------------------
attrib
attrib [/s] [-R | +R] [-A | +A] [-S | +S] [-H | +H] <file>
attrib /?
FD: none

Modifies or displays attributes of given file or directory.  If no option is given then displays attributes of all files and directories in the current directory, otherwise attempts to change attributes of specified file[s] to those given.
external, attrib.exe

/s additionally apply options to all files in every subdirectory
- remove (clear) specified attribute
+ add (set) specified attribute
R readonly, normal operations are unable to write or delete file
A archive, indicates file was changed since last backup or other operation that cleared archive attribute (i.e. needs archving)
S system, indicates this is a system file or other file that should not be physically moved/alterred, normal operations are unable to write or delete file and may not list file
H hidden, indicates file or directory should not be shown in normal directory listing

Examples:
attrib -a +s +r command.com
Removes the archive, adds the system & readonly attributes to the file command.com.
attrib /S -a *.*
Removes the archive attribute from all files in the current directory and files in all subdirectories.
attrib
Displays the attributes of all files in the current directory.
----------------------------------------------------------------------------
backup
----------------------------------------------------------------------------
break (I)
----------------------------------------------------------------------------
call (I)
----------------------------------------------------------------------------
chcp (I)
----------------------------------------------------------------------------
chdir/cd (I)
----------------------------------------------------------------------------
chkdsk
----------------------------------------------------------------------------
choice
----------------------------------------------------------------------------
cls (I)
----------------------------------------------------------------------------
command.com [FreeCom]
----------------------------------------------------------------------------
comp
----------------------------------------------------------------------------
copy (I)
----------------------------------------------------------------------------
country [???]
----------------------------------------------------------------------------
ctty
----------------------------------------------------------------------------
date (I)
----------------------------------------------------------------------------
debug
----------------------------------------------------------------------------
defrag
----------------------------------------------------------------------------
deltree
----------------------------------------------------------------------------
dir (I)
----------------------------------------------------------------------------
diskcomp
----------------------------------------------------------------------------
diskcopy
----------------------------------------------------------------------------
display
----------------------------------------------------------------------------
echo (I)
----------------------------------------------------------------------------
edit
----------------------------------------------------------------------------
edlin
----------------------------------------------------------------------------
emm386
----------------------------------------------------------------------------
erase/del (I)
----------------------------------------------------------------------------
exe2bin
----------------------------------------------------------------------------
exit (I)
----------------------------------------------------------------------------
fasthelp
----------------------------------------------------------------------------
fc
----------------------------------------------------------------------------
fdisk
----------------------------------------------------------------------------
find
----------------------------------------------------------------------------
for (I)
----------------------------------------------------------------------------
format
----------------------------------------------------------------------------
goto (I)
----------------------------------------------------------------------------
graftabl
----------------------------------------------------------------------------
graphics
----------------------------------------------------------------------------
himem [fdxms/fdxms286]
----------------------------------------------------------------------------
help [htmlhelp]
----------------------------------------------------------------------------
if (I)
----------------------------------------------------------------------------
join [swsubst, see also subst]
----------------------------------------------------------------------------
keyb [keyb/mkeyb/xkeyb]
----------------------------------------------------------------------------
label
----------------------------------------------------------------------------
lfnfor (Win32)
----------------------------------------------------------------------------
loadhigh/lh
----------------------------------------------------------------------------
lock (Win32)
----------------------------------------------------------------------------
mem
----------------------------------------------------------------------------
mirror
----------------------------------------------------------------------------
mkdir/md (I)
----------------------------------------------------------------------------
mode
----------------------------------------------------------------------------
more
----------------------------------------------------------------------------
move
----------------------------------------------------------------------------
mscdex [fdcdex/shsucdex]
----------------------------------------------------------------------------
nlsfunc
----------------------------------------------------------------------------
path (I)
----------------------------------------------------------------------------
pause (I)
----------------------------------------------------------------------------
print
----------------------------------------------------------------------------
prompt (I)
----------------------------------------------------------------------------
ramdisk [tdisk/bitdisk]
----------------------------------------------------------------------------
replace
----------------------------------------------------------------------------
restore
----------------------------------------------------------------------------
rem/:: (I)
----------------------------------------------------------------------------
rename/ren (I)
----------------------------------------------------------------------------
rmdir/rd (I)
----------------------------------------------------------------------------
scandisk
----------------------------------------------------------------------------
set (I)
----------------------------------------------------------------------------
share
----------------------------------------------------------------------------
shift (I)
----------------------------------------------------------------------------
sort
----------------------------------------------------------------------------
subst [swsubst, see also join]
----------------------------------------------------------------------------
sys
----------------------------------------------------------------------------
time (I)
----------------------------------------------------------------------------
tree
----------------------------------------------------------------------------
truename (I)
----------------------------------------------------------------------------
type (I)
----------------------------------------------------------------------------
undelete
----------------------------------------------------------------------------
unlock (Win32)
----------------------------------------------------------------------------
ver (I)
----------------------------------------------------------------------------
verify (I)
----------------------------------------------------------------------------
vol (I)
----------------------------------------------------------------------------
xcopy
----------------------------------------------------------------------------
