How to Protect Zip file with Password on Ubuntu 18.04 LTS
Protect your compressed zip file with password on Linux is pretty easy. There are several ways and tools to protect your file with password on Linux.
In this tutorial, we will show you how to protect zip file with a password using the command line and GUI on Ubuntu 18.04.eval(ez_write_tag([[580,400],’howtoforge_com-medrectangle-3′,’ezslot_2′,121,’0′,’0′]));
- Ubuntu 18.04 Desktop installed in your system.
- A normal user with sudo privileges.
Create Password Protected Zip file from Command Line
First, you will need to install zip and unzip packages on your system. You can install both packages with the following command:
sudo apt-get install zip unzip -y
First, create a sample file that you want to encrypt.
Add some content:
This is my first password protected zip file
Save and close the file.
Next, create a zip archive with a password by running the following command:
zip --encrypt test1.zip test1
You will be prompt to enter the password as shown below:
Enter password: Verify password: adding: test1 (deflated 2%)
Now, try to unzip the password-protected zip file:
You will need to provide a password in order to unzip the file:eval(ez_write_tag([[580,400],’howtoforge_com-medrectangle-4′,’ezslot_1′,108,’0′,’0′]));
Archive: test1.zip [test1.zip] test1 password: inflating: test1
Create Password Protected Zip file from GUI
You can also create a password-protected zip file from the graphical environment.
To do so, right-click on the file you want to secure and click on the Compress:
Now, select the compression format and click on the Other Options. You should see the following page:
Now, provide the password and click on the Create button. Once the file compressed successfully, you should see the newly created zip file in the following page:
To unzip the file, right-click on the zip file and click on the Extract Here button. You will be prompt to enter the password. Provide the password and click on the Ok button to finish.
In this tutorial, we have learned how to create a password-protected zip file on Ubuntu 18.04 with a command line and graphical environment.