Resources   /   Blogs

How to Compress Files and Folders with a Password in Ubuntu | Create A Password Protected Zip File in Linux

This simple tutorial shows you how to compress files and folder and create a password protected zip file in Linux Ubuntu. To add a little security to your hidden files/records, you can compress them with a password and then hide them from a GUI file manager as below mention:

 

Below are the steps to create a password protected zip file in Linux.

 

First, create a file.

 

first-create-a-file-and-compress-in-linux

 

Here I create a file and name it ‘test’ then Right Click on the created file and click on compress you can see in below screenshot

 

compress-files-and-folders-with-a-password-in-ubuntu

 

After that, you can see a dialogue box as shown in the figure below.

 

linux-dialogue-box-as-shown

 

Drop down the list and select zip

 

drop-down-the-list-and-select-zip-file-linux-ubuntu

 

Then after clicking on other options:

 

after-clicking-on-other-options-ubuntu-linux

 

Enter Password in password panel and click on create.

 

password-panel-linux-ubuntu

 

Then you can see a dialogue box with message test.zip created successfully.

 

dialogue-box-with-message-test-zip-created-successfully-ubuntu-linux

 

Now try to open the file you can see a dialogue box which asks for the password.

 

open-the-file-you-can-see-dialogue-linux-ubuntu

 

Enter a password which you added.

 

create-a-password-protected-zip-file-in-linux

 

Note: Don’t forget the password, otherwise you will lose your data. Currently, only 7-Zip, ZIP, RAR and ARJ archives supports encryption.

05 October, 2018

Related Posts