Quick Answer: How Do I Compress a File in Ubuntu Using Terminal?
Contents How Do I Compress a File in Ubuntu Terminal? Zip a Folder in Ubuntu Linux Using Gui in Here, Select the Files and Folders. Now, Right Click and Select...
Contents
How do I compress a file in Ubuntu terminal?
Zip a folder in Ubuntu Linux Using GUI
In here, select the files and folders. Now, right click and select Compress. You can do the same for a single file as well. Now you can create a compressed archive file in zip, tar xz or 7z format.
How do I compress a file in Terminal?
How to Zip a Folder Using Terminal or Command Line
- SSH into your website root via Terminal (on Mac) or your command line tool of choice.
- Navigate to the parent folder of the folder that you want to zip up using the “cd” command.
- Use the following command: zip -r mynewfilename.zip foldertozip/ or tar -pvczf BackUpDirectory.tar.gz /path/to/directory for gzip compression.