DOS UNIX Command Reference
DOS UNIX Command Reference
Leo Leung The Unix command listed in this cross reference are categorized into four areas: Directory Management File Management Misc (including control keys) Foreground/Background Job Control (for ksh and bash) mtools (for floppy disk access)
Directory Management
Unix Command ls ls -l ls | more ls -a ls -F mkdir dir rmdir dir cd dir cd pwd DOS equivalent dir /w dir dir /p Remarks list (ls) directory entries dir in long format dir page by page show all files (including hidden files) show file type (dir/ exe*) make directory remove directory change directory back to home directory print working directory (i.e., current directory)
File Management
Unix Command cp file1file2 cp filedir mv file1file2 mv filedir rm file rm -r dir cat file more file lpr -x file find . -name "file" -print DOS equivalent copy file1file2 copy filedir ren file1file2 move filedir del file deltree dir type file type file | more print file dir file /s Remarks make a copy of file1, name the duplicate as file2 copy a file into the dir rename file1 as file2 move a file to another dir remove (delete) a file remove the entire dir and its subdirectories display the content of file display the content of file, page by page print a file search a file
Misc
Unix Command man command clear DOS equivalent help cls Remarks online help clear screen
echo $PATH who am i who finger user history r r n [Ctrl-S] [Ctrl-Q] [Ctrl-D]
path
exit
show the current search path show the current userid show who else are on the system show the information of user show the previously entered commands (for Korn Shell) repeat last command (for Korn Shell) repeat command no. n shown in the history (for Korn Shell) suspend the screen display resume the screen display mark the end of input (If you press [Ctrl-D] at prompt of your login shell, you're telling the shell that you will not issue commands to it any more, which is just another saying of logging off.) logoff
fg %jobNum fg pid bg %jobNum bg pid kill %jobNum kill pid kill -9 %jobNum kill -9 pid kill 0
(Note: the argument of this command is a zero, not the letter oh.)