Compression in Unix

Compression in unix is done by using the tar and gzip command. Using these commands we can combine a list of files into tar and compression it using gzip command.

tar command in unix

tar cf file.tar files – create a tar named
file.tar containing files
tar xf file.tar – extract the files from file.tar
tar czf file.tar.gz files – create a tar with
Gzip compression
tar xzf file.tar.gz – extract a tar using Gzip
tar cjf file.tar.bz2 – create a tar with Bzip2
compression
tar xjf file.tar.bz2 – extract a tar using Bzip2

gzip command in unix

gzip file – compresses file and renames it to
file.gz
gzip -d file.gz – decompresses file.gz back to
file

To learn basic search in unix visit tutorial Searching in Unix

To learn system information commands visit tutorial System Information commands in unix

Share

Related posts:

  1. searching in unix
  2. System Information Commands in Unix
  3. Unix Basic Commands

One Comments

  1. Adore your writing skill! Though actually you are able to include the odd one or two notions to improve it.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Like us in Google +