P&P: Unix commands

Following is a list of some Unix commands to discuss:

For further information see http://www.nyu.edu/its/howto/unix/

ls
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>
cd..
change directory (e.g. cd pictures brings you to the sub-directory "pictures")
change directory up one level to the parent directory
pwd see the current directory and path
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.