ubuntu
Extract, decompress or unzip a zip file in Ubuntu
To decompress or unzip a zip file in Ubuntu you can use unzip command. If the command is not already installed you need to install it first.
# If unzip command not found
----------------------------
sudo apt-get install unzip
# To unzip the zip file on the same location
--------------------------------------------
unzip FILE_NAME.zip
>> It means the source and destination folders are same
# To unzip a zip file to a target location
------------------------------------------
unzip file.zip -d /path/to/destination_folder
Decompression of zip files requires unzip command to be installed on Ubuntu System. If the command is not installed on the system you can install it using below command.
sudo apt-get install unzip
We have place sudo before apt-get command to prevent the permission denied error.
Was this helpful?
Similar Posts
- Create a new directory or folder in Ubuntu
- Change directory name or rename a directory in Ubuntu
- Remove or Delete a folder or directory in Ubuntu
- Copy a directory along with its content to another directory in Ubuntu
- Find all empty directories in a directory in Ubuntu
- Delete all empty directories in a directory in Ubuntu
- Get total size of a directory or folder in Ubuntu