compress directory under Linux using shell prompt

How can I compress a whole directory under Linux / UNIX using a shell prompt? It is useful to backup files, email all files. Technically, it is called as a compressed archive. GNU tar command is best for this work. It can be use on remote Linux or UNIX server. It does two things for […]