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
$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