Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Compress file in SSH (See related posts)

The below will compress a file or folder in .tar.gz format in SSH.

tar -zcvf <new_tar_filename>.tar.gz <filename/directory>

Comments on this post

f3lix posts on Oct 28, 2007 at 07:32
IMHO, this has nothing to do with SSH. When u say "in SSH" you probably mean just the Shell...
That's just like saying 'in HTTP' if you mean HTML.

A better title would have been: "Use tar to archive files"

You need to create an account or log in to post comments to this site.


Click here to browse all 5147 code snippets

Related Posts