Archive, Compress, Unpack and Decompress Files
Archive, Compress, Unpack and Decompress Files
tar
: Can be used to archive, unarchive, compress and decompress files- Archives values in the
/etc
directory in a file calledetc.tar
: tar cvf etc.tar /etc
- Decompresses archive:
tar xvf etc.tar
- Archives values in the
/etc
directory in a file calledetc.tar
, and also compress that file withgzip
: tar cvzf etc.tar /etc
- List contents of archived file:
tar tvf etc.tar
c
– Archivev
– Verbosef
– Write to a filex
– Extractz
– gzip compressionj
– bzip compressionA
– Append files to existing archivet
– List contents