TIPS:
tar is an archiving utility.it can also be used to create pr decompress gzip or bzip2 files.
1.(Using the tar command to create a ".tar.gz" file or folder/stuff)
$ tar -czvf stuff.tar.gz stuff
2.(Using the tar command to create a ".tar.bz2" file or folder/stuff)
$ tar -cjvf stuff.tar.bz2 stuff
3.(list the files in the archive of gzip)
$ tar -tzvf stuff.tar.gz
4.(list the files in the archive of bzip2)
$ tar -tjvf stuff.tar.bz2
5.To extract only one file from archive
$ tar -xvf stuff.tar Example.txt
the above command will only get the Example file from the archive
6.To extract a '.tar.gz' file
$ tar -zxvf stuff.tar.gz
7.To extract a '.tar.bz2' file
$ tar -jxvf stuff.tar.bz2
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment