CentOS Stream 9
Sponsored Link

Commands Help

Command :   Back to index

tar - The GNU version of the tar archiving utility
[SYNOPSIS] tar OPTION FILE
option
f use archive file or device ARCHIVE
v verbosely list files processed
x extract files from an archive
# tar xvf file.tar
z filter the archive through gzip
# tar zxvf file.tar.gz
j filter the archive through bzip2
# tar jxvf file.tar.bz2
c create a new archive
# tar cvf file.tar file1 file2
t list the contents of an archive
# tar tvf file.tar
u only append files newer than copy in archive
# tar uvf file.tar file1
--delete delete from the archive (not on mag tapes!)
# tar --delete -vf file.tar file1

Matched Content