To create a tar or zip file execute the following command:
tar -cvfz filename.tgz directory/This will also compress the directory (gzip).
To tar the current directory and all it's sub directories execute the following command:
tar -cvf filename.tgz *This e-mail address is being protected from spambots. You need JavaScript enabled to view it.