tar is the standard UNIX/Linux archiving application tool. In its early stage it used to be a Tape Archiving Program which gradually is developed into General Purpose archiving package which is capable of handling archive files of every kind. tar accepts a lot of archiving filter with options.
tar options
- -A : Append tar files to existing archives.
- -c : Create a new archive file.
- -d : Compare archive with Specified filesystem.
- -j : bzip the archive
- -r : append files to existing archives.
- -t : list contents of existing archives.
- -u : Update archive
- -x : Extract file from existing archive.
- -z : gzip the archive
- –delete : Delete files from existing archive.
tar Examples
Create a tar archive file.
# tar -zcvf name_of_tar.tar.gz /path/to/folder
Decompress an tar archive file.
# tar -zxvf Name_of_tar_file.tar.gz
Source: 5 Best Command Line Archive Tools for Linux – Part 1
5 Best Command Line Archive Tools for Linux was last modified: January 16th, 2020 by