DOS to UNIX
This is a quick reference for users of DOS who are moving to UNIX environment. Look for a task or DOS command and then select the UNIX command for further details.
To do … DOS UNIX
display a list of files dir /w dir ls
dir ls -l
display contents of file type cat
display file with pauses type filename | more more
copy file copy cp
find string in file find grep
compare files comp diff
rename file rename or ren mv
delete file erase or del rm
delete directory rmdir or rd rmdir
change file protection attrib chmod
create directory mkdir or md mkdir
change working directory chdir or cd cd
get help help man
display date and time date, time date
display free disk space chkdsk df
print file print lpr
display print queue print lpq