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:
Post a Comment