sudo apt-get install unzip
unzip file.zip
sudo apt-get install unzip
After installing the unzip utility, if you want to extract to a particular destination folder, you can use:
unzip file.zip -d destination_folder
If the source and destination directories are the same, you can simply do:
unzip file.zip
unzip myzip.zip
unzip file.zip
unzip file.zip -d destination_folder
or unzip path/to/file.zip
# basic command
unzip filename.zip
# Use the following options to modify how the base unzip command works:
-d /path/to/extact/location: Unzip an archive to a different directory.
-j: Unzip without creating new folders, if the zipped archive contains a folder structure.
-l: Lists the contents of an archive file without extracting it.
-n: Do not overwrite existing files; supply an alternative filename instead.
-o: Overwrite files, if relevant.
-P password: Supplies a password to unzip a protected archive file.
-q: Unzips without writing status messages to the standard output.
-t: Tests whether an archive file is valid.
-v: Displays detailed (verbose) information about the archive without extracting it.
-x filename: Extract the archive but do not extract the specified files.
move command : mv filename dirname
remove command : rm -r filename
copy command : cp filename dirname
zip command : zip -r filename.zip foldername
unzip command : unzip filename.zip -d dirname