The tar linux command syntax

Tar Usage and Options

c – create a archive file.
x – extract a archive file.
v – show the progress of 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 or directories to existing archive file.
W – Verify a archive file.
wildcards – Specify patterns in unix tar command.

examples :
- extract :
tar -xvf file.tar
- create :
tar -cvf archive.tar /path/tofile
- with compression :
tar -cvjf archive.tar.bz2 /path/tofile

2019-05-04 21:52:24

Comments

Add a Comment

Login or Register to post a Comment.

Homepage