Random Linux

Linux, video games and web hosting

To extract a tar file named file.tar, you can use the following command.

[email protected] [~]#tar -xvf file.tar

In that, the x is the part that extracts, f defines the file and v gives verbose output, telling you what is being extracted.

To extract a file that is named file.tar.gz, you will use the z flag to ungzip it as well.

[email protected] [~]#tar -xzvf file.tar.gz

March 7th, 2011

Posted In: General

Tags:

2 Comments

Leave a Reply

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

*