Unix Commands Summary

As students of ECET 445, you will be heavily interacting with a GNU/Linux shell or command line interface.  You will be using many text-based commands in order to execute and complete your assignments, labs, and, most importantly, your exams.

The following is a list of a number of the UNIX commands available on this server.

Command Use Example
ls list files in current directory ls
(this will list all the files in our present working directory)
cd change the current directory cd public_html
(this will move into the directory called "public_html")
pwd display the current directory pwd
(this will tell us which directory we're currently in)
cp copy file(s) cp test.html mydir/test2.html
(this will copy a file called "test.html" into the directory called "mydir" and name the new file "test2.html")
mv move file(s) mv one.html two.html
(this will rename the file "one.html" to "two.html")
mv one.html mydir/
(this will move the file "one.html" to the directory called "mydir")
rm delete file(s) rm test.html
(this will delete the file called "test.html")
rm -r mydir/(this will delete the directory called "mydir" and all the files/directories within it)
nano edit a text file nano first.html
(this will edit the existing file called "first.html" or create a new file if it does not yet exist)
mkdir make directory mkdir mydir
(this will create a directory called "mydir")
rmdir remove directory rmdir mydir
(this will remove the directory called "mydir")
wget download file wget http://www.google.com/intl/en/images/logo.gif
(this will download the Google logo and place it in the current directory)