Unix commands

ls - list files and directories
pwd - print working directory (path of the current working directory)
cd - change directory
current directory - .
parent directory - ..
home directory - ~



mkdir - make directory
cp - copy
mv - move
rm - remove
rmdir - remove directory
cat - concatenate (prints file content on screen)
less - same as cat but one page at a time [space bar] - next page; [q] - quit
head - prints first 10 lines
tail - prints last 10 lines
grep - search for keywords
............ -i ignore upper/lower case distinctions
............ -v display those lines that do NOT match
............ -n precede each matching line with the line number
............ -c print only the total count of matched lines
wc - word count (count the number of characters, words [-w] or lines [-l])


sort - sorts data
> - writes output in a file (erasing its content if there is any)
>> - adds output to the file
| - sends output of a command to input of another command


* - wildcard to match any number of characters
? - wildcard to match exactly one character
man - manual


^C - kill job
diff file1 file2 - compares the contents of two files and displays the differences (Lines beginning with < denote file1, lines beginning with > denote file2)

diff file1 file 2                                               compares 2 files


gzip - compress files
gunzip - uncompress files
zcat - reads compressed files without uncompressing them first
history - ordered list of all entered commands (to increase the size of the history type " set history=100 ")
find - searches through the directories for files and directories with a given name, date, size, or any other specified attribute

Tutorial: http://www.ee.surrey.ac.uk/Teaching/Unix/unixintro.html