Menu

Category

Zipping and Unzipping using Terminal

February 7, 2020
Zipping and Unzipping using Terminal

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 zip

To install “zip” on Ubuntu issue the following command in your terminal –

sudo apt-get install zip

Using the zip Application

Now if you want to simply zip a file/folder, you can use the following command –

zip -r zippedFileName.zip foldertozip

Unzipping files using the terminal

Installing unzip Application

To install “unzip” on CentOS issue the following command in your terminal

sudo yum install unzip

To install “unzip” on Ubuntu issue the following command in your terminal –

sudo apt-get install unzip

Using 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_folder

If you want to extract the file in its current location then you can issue the following command –

unzip filetounzip.zip

Fahim Hossain

Fahim Hossain

With the booming pace of the tech industry, there is a lot to grasp, learn and master. My passion is to work with different architectural design patterns and developing high performance software solutions using the latest technology stacks. I am the founder of ARITS Limited and am currently serving as its Chief Executive Officer

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll
Advancing Through Technology
Ground Floor • House 375 • Lane 6W
Baridhara DOHS • Dhaka • 1206 • Bangladesh
Email : contact@aritsltd.com
Call: ‭+880 19 0519 9835
Automation • Robotics • Information • Technology • Solutions
© 2019 ARITS Limited • Advancing Through Technology
All rights reserved.