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

j : GZ
z : 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