In order to "unzip" a file using terminal, make sure you have the application installed on your system.
Zipping files using the terminal
Installing zip Application
To install "zip" on CentOS issue the following command in your terminal
sudo yum install zipTo install "zip" on Ubuntu issue the following command in your terminal -
sudo apt-get install zipUsing the zip Application
Now if you want to simply zip a file/folder, you can use the following command -
zip -r zippedFileName.zip foldertozipUnzipping files using the terminal
Installing unzip Application
To install "unzip" on CentOS issue the following command in your terminal
sudo yum install unzipTo install "unzip" on Ubuntu issue the following command in your terminal -
sudo apt-get install unzipUsing the unzip Application
Now if you want to extract a file to a particular destination folder, you can use the following command -
unzip filetounzip.zip -d path_to_destination_folderIf you want to extract the file in its current location then you can issue the following command -
unzip filetounzip.zipHeading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
Block quote
Ordered list
- Item 1
- Item 2
- Item 3
Unordered list
- Item A
- Item B
- Item C
Bold text
Emphasis
Superscript
Subscript
.avif)




