x32x01
ADMINISTRATOR
- by x32x01 ||
Creating a ZIP archive helps keep things organized and makes it simple to transfer files from one device to another or upload them to the internet. Best of all, its powerful compression has a positive effect on the size - it shrinks without sacrificing data or quality after you extract it. Unfortunately, does not support zipping files right away, but there is a simple workaround. On Linux, follow these steps to ZIP a file.
How to Create a ZIP File in Linux
The command tar is the default way for Linux to create archives. However, we recommend installing the zip utility.
After installation, if you see GUI (Graphical User Interface) do this:
3. Change .extension for the file you want to zip. For Example, .txt, .docx, .exe, etc.
How To Create Password Protected ZIP file
The -r option is used to recursively look into directories. The -e option enables encryption.
You’ll be prompted to enter and confirm your password. It’s normal that you won’t see the password being typed on the screen. Simply enter the password twice and press enter.
How to Create a ZIP File in Linux
The command tar is the default way for Linux to create archives. However, we recommend installing the zip utility.
- First Open Terminal by Ctrl + Alt + T
- Type: sudo apt install zip unzip
- Open File Manager.
- Right-Click on the file you want to convert into a ZIP file.
- Select Compress
- Enter Name of Archive and Location
- Verify Checkbox
- Click Ok
- First Open Terminal by Ctrl + Alt + T
- To create a ZIP file, type: zip -r filename.zip filenamehere.extension
How To Create Password Protected ZIP file
- Open Terminal
- Type: zip -e filename.zip filenamehere.extension
You’ll be prompted to enter and confirm your password. It’s normal that you won’t see the password being typed on the screen. Simply enter the password twice and press enter.