Fıle Compressıon on Lınux

Hello,Downloading individual files is very annoying. If you have multiple files you can compress with extensions such as rar, zip, tar. With this process, you can compress the backups you have received and keep it clean.


Hello,

Downloading individual files is very annoying. If you have multiple files you can compress with extensions such as rar, zip, tar. With this process, you can compress the backups you have received and keep it clean.

Compress with ZIP

$ zip -r compressedFileName.zip folder_or_file

Compress with Tar.Gz

$ tar cvzf compressedFileName.tar.gz folder_or_file

Compress with Tar.Bz

$ tar cvzf compressedFileName.tar.bz folder_or_file

Compress with Tar.Z

$ tar -cZvf compressedFileName.tar.z folder_or_file

Compress with RAR

$ rar a -ap compressedFileName.rar folder_or_file

Compress with RAR (With Password)

$ rar a -ap -p compressedFileName.rar folder_or_file