How to unzip files in Ubuntu?

There are two methods to extract files on Ubuntu: using the command line tool or using a graphical tool. Let’s introduce each method separately.

  1. Command line method:
  2. Decompress the .tar file: Use the tar command, for example: tar -xvf file.tar, where file.tar is the name of the file to decompress.
  3. Unpack a .tar.gz or .tgz file: Use the tar command, for example: tar -xzvf file.tar.gz, where file.tar.gz is the name of the file to be unpacked.
  4. Decompress the .zip file: use the unzip command, for example: unzip file.zip, where file.zip is the name of the file to be decompressed.
  5. graphical method:
  6. Right-click on the file you want to unzip and choose “Extract to…” or a similar option.
  7. Choose the directory where you want to extract the files in the pop-up window, and then click the “Extract” button.

After the decompression is complete, the extracted files will be generated in the specified directory regardless of the method used.

bannerAds