Tar Command Examples

tar -cvf a.tar /dir
Create a tar archive called a.tar for dir
tar cvzf a.tar.gz /dir
gzip compressed archive
tar -xvf Archive.tar.gz
Uncompress
v
show the progress of archive file
c
create a archive file.
x
extract a archive file.
f
filename of archive file
t
viewing content of archive file.
j
filter archive through bzip2.
z
filter archive through gzip
r
append or update files
Comments