Unzip a zip file from terminal

  • by sysadmin
  • 13 Days ago
  • 0

Have you downloaded a .zip file from the Internet and you’re looking a way to unzip it from terminal? In this article you’re going to see how to unzip a zip file from terminal in Linux.

unzip a zip file from Terminal

What is a zip file?

Zip, is an archive file format and it may contain one or many files or directories that have been compressed. File compression (to a zip format) can be vital if we want to send multiple files via e-mail. It also is a good way to save bandwidth and space in our hard drive because specific types of files can be compressed to over 90% smaller sizing.

 

Unzip a zip file from terminal using “unzip”

Install the unzip command on your Linux system by opening a terminal and running the following command:

sudo apt-get install unzip

 

After you’ve successfully installed the “unzip” command type the command below to unzip it in a specific destination:

unzip yourfilename.zip -d your_destination_folder

Unzip a zip file from terminal using “7z”

Another tool to unzip .zip files is 7z. To install 7z run the following command:

sudo apt-get install p7zip-full

If you want to list the contents of your zip file you should type:

7z l yourfilename.zip

If you want to extract the contents of your zip file type:

7z x yourfilename.zip
  • facebook
  • googleplus
  • twitter
  • linkedin
  • linkedin