How to Create a Password Protected ZIP File in Linux? - GeeksforGeeks (2024)

Last Updated : 23 Feb, 2021

Summarize

Comments

Improve

Linux provides Zip command to work with a file like compressing the file and decompressing with a password. It’s not come with built-in you need to install from an external source. The Zip command has two different utility(zip and unzip). zip is used for compressing the file and unzip is used for decompressing the file.

Installation

Use this command in Ubuntu, Debian, and Linux mint.

sudo apt install zip unzip

How to Create a Password Protected ZIP File in Linux? - GeeksforGeeks (1)

For Arch Linux:

sudo pacman -S zip unzip

For Red Hat, Fedora, and CentOS.

sudo dnf install zip unzip

Usage

Zip the file with the following commands.

zip -re OUTPUT_FILE.zip FOLDER

While running this command it will ask the password for a zip file.

Example:

zip -re output_data.zip gfg

How to Create a Password Protected ZIP File in Linux? - GeeksforGeeks (2)

Check your file(output_data.zip) is created with password protected.

ls

How to Create a Password Protected ZIP File in Linux? - GeeksforGeeks (3)

Unzip

You can easily unzip the file with these commands.

unzip YOUR_FILE.zip

While running this command it will ask the password for a decompressing zip file.

Example:

unzip output_data.zip

How to Create a Password Protected ZIP File in Linux? - GeeksforGeeks (4)

Create a Password-Protected ZIP File in Linux Using GUI

We can use our GUI window to create a zip file and unzip too. Here are the following steps:

Step 1: Go to the file location and right-click on the file.

How to Create a Password Protected ZIP File in Linux? - GeeksforGeeks (5)

Step 2: Then click on the compress option.

How to Create a Password Protected ZIP File in Linux? - GeeksforGeeks (6)

Step 3: Then click on the other option and set your password and click on Create option.

How to Create a Password Protected ZIP File in Linux? - GeeksforGeeks (7)

Your Password-Protected ZIP File is created.

How to Create a Password Protected ZIP File in Linux? - GeeksforGeeks (8)



Please Login to comment...

How to Create a Password Protected ZIP File in Linux? - GeeksforGeeks (2024)
Top Articles
Why millennials are giving up city life to start homesteading
How to Convert your Canadian Dollars to US Dollars?
Will Byers X Male Reader
Caesars Rewards Loyalty Program Review [Previously Total Rewards]
Dricxzyoki
Chatiw.ib
Tesla Supercharger La Crosse Photos
The Realcaca Girl Leaked
Pitt Authorized User
Wfin Local News
Where's The Nearest Wendy's
General Info for Parents
Kaomoji Border
2016 Ford Fusion Belt Diagram
Idaho Harvest Statistics
Simplify: r^4+r^3-7r^2-r+6=0 Tiger Algebra Solver
How To Level Up Roc Rlcraft
Leccion 4 Lesson Test
Robert Deshawn Swonger Net Worth
Bernie Platt, former Cherry Hill mayor and funeral home magnate, has died at 90
Happy Life 365, Kelly Weekers | 9789021569444 | Boeken | bol
Parc Soleil Drowning
4 Times Rihanna Showed Solidarity for Social Movements Around the World
Egusd Lunch Menu
Saxies Lake Worth
Vera Bradley Factory Outlet Sunbury Products
Jersey Shore Subreddit
Delta Math Login With Google
Uncovering the Enigmatic Trish Stratus: From Net Worth to Personal Life
Kristen Hanby Sister Name
Lehpiht Shop
Tamilyogi Ponniyin Selvan
Bridger Park Community Garden
Mistress Elizabeth Nyc
Ticketmaster Lion King Chicago
The Transformation Of Vanessa Ray From Childhood To Blue Bloods - Looper
301 Priest Dr, KILLEEN, TX 76541 - HAR.com
Tryst Houston Tx
SF bay area cars & trucks "chevrolet 50" - craigslist
Live Delta Flight Status - FlightAware
Smite Builds Season 9
Levi Ackerman Tattoo Ideas
National Weather Service Richmond Va
Gas Buddy Il
How to Install JDownloader 2 on Your Synology NAS
Unblocked Games 6X Snow Rider
Wisconsin Volleyball titt*es
Marcel Boom X
Rubmaps H
786 Area Code -Get a Local Phone Number For Miami, Florida
Latest Posts
Article information

Author: Corie Satterfield

Last Updated:

Views: 5772

Rating: 4.1 / 5 (62 voted)

Reviews: 93% of readers found this page helpful

Author information

Name: Corie Satterfield

Birthday: 1992-08-19

Address: 850 Benjamin Bridge, Dickinsonchester, CO 68572-0542

Phone: +26813599986666

Job: Sales Manager

Hobby: Table tennis, Soapmaking, Flower arranging, amateur radio, Rock climbing, scrapbook, Horseback riding

Introduction: My name is Corie Satterfield, I am a fancy, perfect, spotless, quaint, fantastic, funny, lucky person who loves writing and wants to share my knowledge and understanding with you.