0
Q:

unzip a tar.gz file in linux

tar -xvzf community_images.tar.gz
2
tar -xf archive.tar.xz -C /home/linuxize/files
5
tar -xvf file.tar.gz
0
tar -xvf yourfile.tar.gz
5
## Untar files in Current Directory ##
tar -xvf filename.tar.gz

## Untar files in specified Directory ##
tar -xvf filename.tar.gz -C /path_name_for_unzip/

-x : extract
-C : specified directory
-v : Verbosely show the .tar file progress.
-f : filename of archive file
2

New to Communities?

Join the community