How to compress files and folders in Ubuntu ?

Compress Files and Folders in Ubuntu

Zip File / Folder

apt-get install zip

zip -r <<FILENAME>>.zip <<FOLDERNAME>>

Rar / Unrar

To extract the contents of a .rar file, run this command

unrar e file.rar

Compress Files, Folders & Subfolders

rar a -r <<FILENAME>> <<FOLDER NAME>>

UnCompress Files, Folders & Subfolders
unrar x <<FILENAME>>.rar <<FOLDER>>

Related posts

Leave a Comment