P&P: Unix commands reviewed in class

Following is a list of the Unix commands we discussed in class.


ls -l
ls -a

lists a directory of your files
lists a directory with more information about the files
lists a directory including the hidden files
chmod modifies the permissions on a directory
mkdir <directory name> creates a new directory (e.g. mkdir pictures creates a directory called "pictures")
rmdir <directory name> removes an empty directory (e.g. rmdir pictures removes a directory called "pictures" as long as that directory is empty)
cp <current filename> <new file name> copy (e.g. cp cats1.jpg cats2.jpg makes a copy of the picture "cats1.jpg" and calls it "cats2.jpg")
rm <filename> remove (or delete) a file (e.g. rm cats1.jpg deletes the file "cats1.jpg")
cd <directory name>
change directory (e.g. cd pictures brings you to the sub-directory "pictures")
change directory up one level to the parent directory
man This is the on-line Unix help documentation (as in "manual"). Type "man" + the command (e.g. "man ls") for a detailed explanation of the command.

Return to the class home page