Ara
29
2008

Compress Files in Linux

Zip files are capable of archiving and compression. Unlike zip files, tar is for archiving only. In maths, this means :

Kb(file1) + Kb(file2) + Kb(File3) = Kb(file123.tar)

If you want to compress then you must gzip command. Gzip compress the file and reduces the size of file. In maths :)

Kb(file1.tar) > Kb(file1.tar.gz)

The tar Command :

tar -cf archive.tar file1

tar -cf archive.tar file1 file2 file3

tar -cf archive.tar Directory1

tar -cf /path/archive.tar /path/Directory1

The gzip Command :

gzip archived.tar

After archiving files or directorys, we get tar file, but after compression we get tar.gz file.

İlişkili Yazılar :

  1. Enterprise Single Sign-on: Back up the Master Secret
  2. Enterprise Single Sign-on: Restore the Master Secret
  3. Linux’da Executable Dosya
  4. How to Manually Register a File
  5. BizTalk Error : “because the secret is not available from the master secret server”
  6. Schedule in Linux

Written by Mehmet AYDIN in: Linux | Etiketler:, , ,

Yorum yapılmamış »

RSS feed for comments on this post. TrackBack URL

Yorum yapın

Mehmet AYDIN | Powered by WordPress | Sitede Aeros Teması kullanılmıştır.