tar [options] archive [files...]Arguments explained
- -c creates an archive.
- -x extracts.
- -t lists contents.
- -f names the archive file.
- -z uses gzip.
- -v shows verbose file names.
Common examples
tar -czf project.tar.gz project/Packs project into a gzip-compressed tar archive.
tar -xzf project.tar.gzExtracts files into the current directory.
| Field | Details |
|---|---|
| Command | tar |
| Category | Compression and Archives |
| Primary use | Creates and extracts archive files. |
| Syntax | tar [options] archive [files...] |