How to use Unzip and Tar on Linux

Tar and Zip are both file compression formats that you’ll encounter. You can use built-in utilities in Linux and Windows to decompress / expand these files.

The command for un”tarring” a file is:

tar -xvf FileName.tar.gz

-x extract – you need this flag
-v verbose (optional)
-f specify the name of the file – needed

The command for unzipping a file is:

unzip filename.zip


Share this article

Share on facebook
Share on twitter
Share on linkedin

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to Top