Navigate: homepage/help/tar

UNIX Commands quick help


tar xfv myfile.tar
tar cfv myfile.tar mysource

tar xfvz myfile.tar.gz
tar cfvz myfile.tar.gz mysource

tar xfvJ myfile.tar.xz
tar cfvJ myfile.tar.xz mysource

x : Extract
c : Compress

f : From file
v : Verbose

z : GZ
J : XZ

Without f tar will read from standard input
-0 to write to standard output

p : Preserve info about file permissions

Should be valid for GNU tar and BSD tar