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.
- Command line method:
- 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.
- 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.
- 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.
- graphical method:
- Right-click on the file you want to unzip and choose “Extract to…” or a similar option.
- 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.