How to unzip a zip folder from the ubuntu

To zip a folder in Ubuntu (or any Ubuntu-based Linux distribution), you can use the zip command in the terminal. Here’s how:


1. Install zip (if not installed)

sudo apt update
sudo apt install zip

2. Zip a folder

Use the following syntax:

zip -r archive_name.zip folder_name
  • -r means recursive (to include all subfolders and files)

  • archive_name.zip is the name you want for the zip file

  • folder_name is the folder you want to compress

Example:

zip -r my_project.zip my_project/

This will create my_project.zip containing everything in the my_project/ folder.

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments