tar command builder
Create, extract and list archives. Choose what to do, get the tar command with every letter explained, and try it on a sample directory first.
Create
Look
Extract
More
The command
tar -czvf backup.tar.gz projectThe same with long options (easier to read, good in scripts)
tar --create --gzip --verbose --file=backup.tar.gz projectEach part of the command
tar -czvfShort options can be run together: -czvfcc: create a new archivezz: gzip, the most common (.tar.gz, .tgz)vv: name each file as it goes (verbose)f backup.tar.gzf backup.tar.gz: the archive’s file name. What follows f is the file name, so f goes last in the lettersprojectThe files and directories to pack; directories go in with everything inside