DAY 15 - FILE COMPRESSION


q  File Compression:

 

v  gzip-Compress

 

Ãœ  gzip file1 >> file1.gz >> zcat file1.gz [without decompressing the file we can read content]

Ãœ  gzip -k file1 [keep the original file]

Ãœ  gzip -r dir1 [zip all the under the directory]

Ãœ  file file1.gz [Can check what type of file]

 

v  gzip-DeCompress

 

Ãœ  gzip -d file1.gz

Ãœ  gunzip file1.gz

 

v  bzip2-Compress

 

Ãœ  bzip2 file1 >> file1.bz2 >> bzcat file1.bz2 [without decompressing the file we can read content]

 

v  bzip2-DeCompress

 

Ãœ  bzip2 -d file1.bz2

Ãœ  bunzip2 file1.bz2

 

v  xz-Compress

 

Ãœ  xz file1 >> file1.xz >> xzcat file1.xz

 

v  xz-DeCompress

 

Ãœ  unxz file1.xz

Ãœ  xz -d file1.xz

Ãœ  tar -cJvf file.tar.xz

 

v  Tar [Tape of archive]

 

Ãœ  tar -cvf home.tar /home [c means create]

Ãœ  tar -tvf home.tar [Check inside the file without untar]

Ãœ  tar -xvf home.tar [ x means extract]

Ãœ  tar -xvf home.tar -C /restore [untar specific location]

Ãœ  tar -xzvf home.tar.gz [z means gz]

Ãœ  tar -xjvf home.tar.bz2 [j means bz2]

 

v  time tar -xvf home.tar [check real time]

 

 

Previous Post Next Post

نموذج الاتصال