Monday, July 14, 2008

How to open or untar a file with .tar.gz extension

1.Go to the directory where the file exists.
2.To extract the file,
tar -zxvf yourfilename.tar.gz
It will be extracted in the current directory. If you wanna extract in a different directory then use the -C option. e.g.
tar -C /foldername -zxvf yourfilename.tar.gz

In the same way, we can extract file with .tar extension
tar -zxvf yourfilename.tar
tar -C /foldername -zxvf yourfilename.tar

No comments:

search engine

Custom Search