To create an archive from the Unix shell (telnet/ssh), use the following command: tar -cvzf filename.tar.gz folder-name So, if I want to create a tarball to backup my “images” folder, I’d use the following command: tar -cvzf images.tar.gz images Note the space between the “z” and the name of the folder I am compressing. You can create archives of individual files as well, just replace the “folder-name” in the example with a file name (i.e. “image.jpg”).

Spread the word:
  • Digg
  • Technorati
  • del.icio.us
  • YahooMyWeb
  • co.mments
  • Furl

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!