compression in unix Archive

Linux command reference

Here are the list of commands in unix

Basic commands in unix

Process Management commands in unix

File Permissions in unix

ssh in unix
searching in unix

System Information commands in unix

compression in unix

Unix shortcuts

Network commands

  • Share/Bookmark
Send article as PDF to PDF Download

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/Bookmark
Send article as PDF to PDF Creator
  • Blogroll
  •  
    September 2010
    M T W T F S S
    « Aug    
     12345
    6789101112
    13141516171819
    20212223242526
    27282930  
  • RSS Tech WAS updates