Saturday, December 24, 2016

Unzip or extract .zip file in linux

In order to unzip a .zip file in linux (Ubuntu) type this in terminal:
$unzip file_name.zip -d destination_folder
For example, to extract a file named HelloWorld.zip to my current directory:
$unzip HelloWorld.zip -d .
Here . represents current directory, you can give a path to the directory to extract into.
If you see "command not found", you need to install zip command by typing:
$sudo apt-get install unzip

Similar to this, you can zip a file by below command:
$zip filename.zip filename
To install command zip type:
$sudo apt-get install zip

No comments:

Post a Comment

Tech That Protects Your Health While You Work Online All Day

The slow problem I didn’t notice until it was already happening. Working online all day can seriously affect your health if your workspace i...