terminal.cab

All commands

tar

Topic: Archives

Program: tar

Packs files into an archive and back.

Package: archive

Usage

tar [OPTION]... [FILE]...

Description

Pack files and directories into one archive and get them back. One of c, x, t or r says what to do. The first word may leave out the dash, as in tar cvf a.tar notes.txt.

Options in the simulator

142 more options of the real program, not in the simulator yet
  • -A, --catenate, --concatenate not in the simulator yet

    Explanation to come

  • --delete not in the simulator yet

    Explanation to come

  • -d, --diff, --compare not in the simulator yet

    Explanation to come

  • --test-label not in the simulator yet

    Explanation to come

  • -u, --update not in the simulator yet

    Explanation to come

  • --check-device not in the simulator yet

    Explanation to come

  • -g, --listed-incremental needs a value not in the simulator yet

    Explanation to come

  • -G, --incremental not in the simulator yet

    Explanation to come

  • --hole-detection needs a value not in the simulator yet

    Explanation to come

  • --ignore-failed-read not in the simulator yet

    Explanation to come

  • --level needs a value not in the simulator yet

    Explanation to come

  • --no-check-device not in the simulator yet

    Explanation to come

  • --no-seek not in the simulator yet

    Explanation to come

  • -n, --seek not in the simulator yet

    Explanation to come

  • --occurrence value optional not in the simulator yet

    Explanation to come

  • --sparse-version needs a value not in the simulator yet

    Explanation to come

  • -S, --sparse not in the simulator yet

    Explanation to come

  • --add-file needs a value not in the simulator yet

    Explanation to come

  • --exclude-backups not in the simulator yet

    Explanation to come

  • --exclude-caches not in the simulator yet

    Explanation to come

  • --exclude-caches-all not in the simulator yet

    Explanation to come

  • --exclude-caches-under not in the simulator yet

    Explanation to come

  • --exclude-ignore needs a value not in the simulator yet

    Explanation to come

  • --exclude-ignore-recursive needs a value not in the simulator yet

    Explanation to come

  • --exclude-tag needs a value not in the simulator yet

    Explanation to come

  • --exclude-tag-all needs a value not in the simulator yet

    Explanation to come

  • --exclude-tag-under needs a value not in the simulator yet

    Explanation to come

  • --exclude-vcs not in the simulator yet

    Explanation to come

  • --exclude-vcs-ignores not in the simulator yet

    Explanation to come

  • --no-null not in the simulator yet

    Explanation to come

  • --no-recursion not in the simulator yet

    Explanation to come

  • --no-unquote not in the simulator yet

    Explanation to come

  • --no-verbatim-files-from not in the simulator yet

    Explanation to come

  • --null not in the simulator yet

    Explanation to come

  • --recursion not in the simulator yet

    Explanation to come

  • -T, --files-from needs a value not in the simulator yet

    Explanation to come

  • --unquote not in the simulator yet

    Explanation to come

  • --verbatim-files-from not in the simulator yet

    Explanation to come

  • -X, --exclude-from needs a value not in the simulator yet

    Explanation to come

  • --anchored not in the simulator yet

    Explanation to come

  • --ignore-case not in the simulator yet

    Explanation to come

  • --no-anchored not in the simulator yet

    Explanation to come

  • --no-ignore-case not in the simulator yet

    Explanation to come

  • --no-wildcards not in the simulator yet

    Explanation to come

  • --no-wildcards-match-slash not in the simulator yet

    Explanation to come

  • --wildcards not in the simulator yet

    Explanation to come

  • --wildcards-match-slash not in the simulator yet

    Explanation to come

  • --keep-directory-symlink not in the simulator yet

    Explanation to come

  • --keep-newer-files not in the simulator yet

    Explanation to come

  • --no-overwrite-dir not in the simulator yet

    Explanation to come

  • --one-top-level value optional not in the simulator yet

    Explanation to come

  • --overwrite not in the simulator yet

    Explanation to come

  • --overwrite-dir not in the simulator yet

    Explanation to come

  • --recursive-unlink not in the simulator yet

    Explanation to come

  • --remove-files not in the simulator yet

    Explanation to come

  • --skip-old-files not in the simulator yet

    Explanation to come

  • -U, --unlink-first not in the simulator yet

    Explanation to come

  • -W, --verify not in the simulator yet

    Explanation to come

  • --ignore-command-error not in the simulator yet

    Explanation to come

  • --no-ignore-command-error not in the simulator yet

    Explanation to come

  • --to-command needs a value not in the simulator yet

    Explanation to come

  • --atime-preserve value optional not in the simulator yet

    Explanation to come

  • --clamp-mtime not in the simulator yet

    Explanation to come

  • --delay-directory-restore not in the simulator yet

    Explanation to come

  • --group needs a value not in the simulator yet

    Explanation to come

  • --group-map needs a value not in the simulator yet

    Explanation to come

  • --mode needs a value not in the simulator yet

    Explanation to come

  • --mtime needs a value not in the simulator yet

    Explanation to come

  • -m, --touch not in the simulator yet

    Explanation to come

  • --no-delay-directory-restore not in the simulator yet

    Explanation to come

  • --no-same-owner not in the simulator yet

    Explanation to come

  • --no-same-permissions not in the simulator yet

    Explanation to come

  • --numeric-owner not in the simulator yet

    Explanation to come

  • --owner needs a value not in the simulator yet

    Explanation to come

  • --owner-map needs a value not in the simulator yet

    Explanation to come

  • -p, --preserve-permissions, --same-permissions not in the simulator yet

    Explanation to come

  • --same-owner not in the simulator yet

    Explanation to come

  • --sort needs a value not in the simulator yet

    Explanation to come

  • -s, --preserve-order, --same-order not in the simulator yet

    Explanation to come

  • --acls not in the simulator yet

    Explanation to come

  • --no-acls not in the simulator yet

    Explanation to come

  • --no-selinux not in the simulator yet

    Explanation to come

  • --no-xattrs not in the simulator yet

    Explanation to come

  • --selinux not in the simulator yet

    Explanation to come

  • --xattrs not in the simulator yet

    Explanation to come

  • --xattrs-exclude needs a value not in the simulator yet

    Explanation to come

  • --xattrs-include needs a value not in the simulator yet

    Explanation to come

  • --force-local not in the simulator yet

    Explanation to come

  • -F, --info-script, --new-volume-script needs a value not in the simulator yet

    Explanation to come

  • -L, --tape-length needs a value not in the simulator yet

    Explanation to come

  • -M, --multi-volume not in the simulator yet

    Explanation to come

  • --rmt-command needs a value not in the simulator yet

    Explanation to come

  • --rsh-command needs a value not in the simulator yet

    Explanation to come

  • --volno-file needs a value not in the simulator yet

    Explanation to come

  • -b, --blocking-factor needs a value not in the simulator yet

    Explanation to come

  • -B, --read-full-records not in the simulator yet

    Explanation to come

  • -i, --ignore-zeros not in the simulator yet

    Explanation to come

  • --record-size needs a value not in the simulator yet

    Explanation to come

  • -H, --format needs a value not in the simulator yet

    Explanation to come

  • --old-archive, --portability not in the simulator yet

    Explanation to come

  • --pax-option needs a value not in the simulator yet

    Explanation to come

  • --posix not in the simulator yet

    Explanation to come

  • -V, --label needs a value not in the simulator yet

    Explanation to come

  • -a, --auto-compress not in the simulator yet

    Explanation to come

  • -I, --use-compress-program needs a value not in the simulator yet

    Explanation to come

  • --lzip not in the simulator yet

    Explanation to come

  • --lzma not in the simulator yet

    Explanation to come

  • --lzop not in the simulator yet

    Explanation to come

  • --no-auto-compress not in the simulator yet

    Explanation to come

  • --zstd not in the simulator yet

    Explanation to come

  • -Z, --compress, --uncompress not in the simulator yet

    Explanation to come

  • --backup value optional not in the simulator yet

    Explanation to come

  • --hard-dereference not in the simulator yet

    Explanation to come

  • -h, --dereference not in the simulator yet

    Explanation to come

  • -K, --starting-file needs a value not in the simulator yet

    Explanation to come

  • --newer-mtime needs a value not in the simulator yet

    Explanation to come

  • -N, --newer, --after-date needs a value not in the simulator yet

    Explanation to come

  • --one-file-system not in the simulator yet

    Explanation to come

  • -P, --absolute-names not in the simulator yet

    Explanation to come

  • --suffix needs a value not in the simulator yet

    Explanation to come

  • --transform, --xform needs a value not in the simulator yet

    Explanation to come

  • --checkpoint value optional not in the simulator yet

    Explanation to come

  • --checkpoint-action needs a value not in the simulator yet

    Explanation to come

  • --full-time not in the simulator yet

    Explanation to come

  • --index-file needs a value not in the simulator yet

    Explanation to come

  • -l, --check-links not in the simulator yet

    Explanation to come

  • --no-quote-chars needs a value not in the simulator yet

    Explanation to come

  • --quote-chars needs a value not in the simulator yet

    Explanation to come

  • --quoting-style needs a value not in the simulator yet

    Explanation to come

  • -R, --block-number not in the simulator yet

    Explanation to come

  • --show-defaults not in the simulator yet

    Explanation to come

  • --show-omitted-dirs not in the simulator yet

    Explanation to come

  • --show-snapshot-field-ranges not in the simulator yet

    Explanation to come

  • --show-transformed-names, --show-stored-names not in the simulator yet

    Explanation to come

  • --totals value optional not in the simulator yet

    Explanation to come

  • --utc not in the simulator yet

    Explanation to come

  • -w, --interactive, --confirmation not in the simulator yet

    Explanation to come

  • --warning needs a value not in the simulator yet

    Explanation to come

  • -o not in the simulator yet

    Explanation to come

  • --restrict not in the simulator yet

    Explanation to come

  • --usage not in the simulator yet

    Explanation to come

  • --version not in the simulator yet

    Explanation to come

Examples

From the lesson Packing and mirroring
tar -czf shop.tar.gz projects/shop
ls -lh shop.tar.gz
-rw-r--r-- 1 lerner lerner 423 Oct 17 09:42 shop.tar.gz

Try it in the terminal

Where you learn it

Lessons

All commands