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

Set up gmail in outlook using app password

You might receive an error saying, "unable to connect to your outgoing server" while setting up a gmail account in outlook even wh...