Javatpoint Logo
Javatpoint Logo

How to ZIP and UNZIP folder in Ubuntu

Zip is a archive file format that is used to store compress data. We can store any number of files with this compression technique. This format was originally created in 1989 by Phil Katz.

In this tutorial, we will zip and unzip directory using Ubuntu terminal.

First see, number of directories present in current directory.

Software Zip and Unzip 1

Currently, we have a javatpoint directory that we will zip in next step.


ZIP Directory

Use the following command to ZIP javatpoint directory.

Software Zip and Unzip 2

See again, number of directories present in current directory. Here, now we have one more directory that is created as zip file.

Software Zip and Unzip 3

Like zip, we can unzip zipped directory. See, as we did below.


Unzip Directory

Use following command to unzip zipped directory.

Software Zip and Unzip 4

Extra Info

zip command has various flags to set attributes for zip file. For more about these flags, ask for help.

Software Zip and Unzip 5





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA