Skip to content
masterclass Buddy

Linux & Shell · Command

tar

tar creates, lists, updates, appends to, and extracts archive files. Choose one operation mode and use -f to name the archive.

Last updated

Syntax

tar -c [ -f ARCHIVE ] [ OPTIONS ] [ FILE ...]
tar -t [ -f ARCHIVE ] [ OPTIONS ] [ MEMBER ...]
tar -x [ -f ARCHIVE ] [ OPTIONS ] [ MEMBER ...]

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • tar --create
  • tar --list
  • tar --extract
  • tar --append
  • tar --update
  • tar --file
  • tar --sort

Source: tar(1) - Linux manual page. Checked 2026-11-03.