How to Zip Files From the Linux Terminal?

Today, We want to share with you zip command in linux.In this post we will show you how zip file in terminal?, hear for zip all files in a directory ubuntu we will give you demo and example for implement.In this post, we will learn about Zip and Unzip Command using Linux(Ubuntu) Terminal. with an example.

How to Zip a Folder Using Terminal or Command Line?

I have been having simple code to run with the command line the last couple of minutes. here create a zip archive of a whole directory using terminal.

Read Also:  Black transparent rgba color code

Step 1: open terminal

Step 2: run the ls command

if you make any your folder then cd.. to select this root folder

Then for simply creating a zip file: zip -r compressed_filename.zip your_folder_name

zip -r compressed_filename.zip your_folder_name

step 3: Go to this folder and download this zip folder and check it.

I hope you get an idea about bash terminal zip folder.
I would like to have feedback on my infinityknow.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.