du command outputs the number of
kilobyes used by each subdirectory. Useful if you have gone over quota
and you want to find out which directory has the most files. In your
This compresses a file, like zip on Windows (note that often
unzip are also available on Linux).
For example, to zip science.txt, type
This will zip the file and place it in a file called science.txt.gz
To unzip the file, use the gunzip command.
file classifies the named files according to the type of data they contain, for example ascii (text), pictures, compressed data, etc.. To report on all files in your home directory, type
The shell keeps an ordered list of all the commands that you have entered. Each command is given a number according to the order it was entered.
You can use the exclamation character (!) to recall commands easily.
Recall last command
!! (recall last command)
recall third most recent command
recall 5th command in list
recall last command starting with grep
You can increase the size of the history buffer by typing