ls
This command will display the contents of a directory. Typical arguments
are:
ls -a shows all files, including hidden
ls -l shows files in wide display, similar to dir in DOS
ls *.html show files ending in .html
ls WWW show contents of WWW directory
cd
This command will change the current directory. Typical uses are:
cd return to home directory
cd WWW change to WWW directory
cd .. go to parent directory
mv
This command will transfer a file to another place, without leaving a
duplicate behind. Can also be used to rename files. Uses include:
mv a.html WWW move a.html to WWW directory
mv a.html b.html rename a.html to b.html
cp
This command copies a file into another file.
cp myfile.c oldfile.c Copies 'myfile.c' into 'oldfile.c'
rm
Erases a file. Note that files cannot be recovered as in DOS. Uses:
rm * erase the entire contents of a directory
rm temp erase file 'temp'
rm *.* DO NOT USE. May cause unpredictable results,
including erasure of all directories.
pwd
Shows current directory. Useful if prompt does not include this
information, as in DOS.