Compress Files in Linux

Pazartesi, Aralık 29th, 2008 @ 21:24

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
  7. Linux’a, Network’teki Windows Klasörünü Mount Etme
  8. BizTalk SSO Error

Tags: , , ,
Posted in Linux | No Comments »

Önceki Yazı << Sonraki Yazı >>

Leave a Reply