DOS commands and their Neutrino equivalents

The table below lists the Neutrino equivalents of some common MS-DOS commands.

For more information about the Neutrino commands, see the Utilities Reference.

DOS command Neutrino command(s)
attrib ls -l, chmod, and ls -a
Batch files Shell scripts; see Writing Shell Scripts in this guide, or the docs for ksh.
cacls ls -l
call script ksh script

If the script begins with #!/bin/sh, you can invoke it like a regular program e.g., script (without prefixing it with sh or ksh).

chdir cd (builtin ksh command)
chkdsk For QNX 4 (Neutrino) disk filesystems, use chkfsys; for DOS FAT filesystems, use chkdosfs.
cls clear
cmd ksh
command ksh
comp cmp or diff
copy cp or pax
date date and rtc

Note that you must use rtc to set the hardware clock to the new date and time.

del rm
dir ls
erase rm
diskcomp See "The diskcomp DOS command"
diskpart fdisk [command]
driverquery See "Troubleshooting" in Working with Filesystems.
fc cmp or diff, as appropriate
find grep -i
findstr grep
format fdformat and dinit
getmac See ifconfig, netstat; also ls /dev/io-net
help use
logman tracelogger
lpq lprq
lpr lpr
md mkdir
mode stty
move mv
msiexec tar, unzip
path echo $PATH, export PATH= new path (see "Utilities" in this chapter, or the documentation for ksh).
print lpr
query pidin, ps
rem #
rename mv
replace cp -x
runas su
schtasks crontab
shutdown shutdown
sort sort
taskkill kill or slay
tasklist pidin or ps
time date and rtc
tracerpt traceprinter
tracert traceroute
type cat
ver uname -a
xcopy cp or pax