Essential UNIX commands

Command Meaning Example
ls directory listing ls
ls Documents/HKU
ls ~/Desktop
cd change to directory cd
cd Desktop
cd ~/Documents/HKU
pwd show current directory pwd
mkdir/rmdir  create/remove directory mkdir scripting
rmdir scripting
man help pages man man
man ls
man ascii
more show contents of text file more /etc/passwd
rm remove file rm my_obsolete_file
cp copy file or directory cp testfile_a testfile_b
cp -r folder_a folder_b
mv rename/move file mv testfile realfile
mv mytestfile anotherfolder