Dewlance® Forum

Full Version: How to extract .tar.gz file?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
tar.gz file is a compressed file and you can extract it by using a simple command.

If you have a tarball file on your Linux OS or you wish to extract it using SSH command then you can extract it by this method.


How to Extract .tar.gz file?
Code:
tar -zxvf filename.tar.gz

Replace filename with your tar filename, For example If your file name is servergame.tar.gz then run this command

Code:
tar -zxvf servergame.tar.gz


How can I extract only one file from tar.gz?
Run this command for extracting single file from tarball.
Code:
tar -zxvf filename.tar.gz setup.exe


Once it will be extracted then you can find file in same directory, For example If your file located in /root/ directory then it will extracted in same directory.