All apps/tar

tar

tar

tar creates, lists and extracts archive files.

Runs as tar|macOS, Linux, Windows

Command form

ai-draft · 4 tasks · 20 fields

Create, list or extract a tar archive. Choose a job in the subcommand tabs; less common options (incremental backups, multi-volume, ACLs, pax options) are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui tar

tar c

Create archive

Pack files and directories into a new archive. Compression is chosen by flag.

Create archiveExample values, fixed in this page — nothing here reaches a terminal
Basic
Archive file*
file
Files and directories*
any
gzip compression
-z
TasksEach one presets the form for one job
Create .tar.gz
archivegzipfiles
Create .tar.xz
archivexzfiles
ParametersOnly these flags are editable in the form
Archive file
path
-f--file
gzip compression
boolean
-z--gzip
bzip2 compression
boolean
-j--bzip2
xz compression
boolean
-J--xz
zstd compression
boolean
--zstd
Verbose
boolean
-v--verbose
Exclude patterns
string · repeatable
--exclude
Exclude VCS directories
boolean
--exclude-vcs
Follow symlinks
boolean
-h--dereference
Files and directories
path · positional 0 · repeatable

tar x

Extract archive

Unpack an archive into a directory. Existing files are replaced unless a keep option is set.

Extract archiveExample values, fixed in this page — nothing here reaches a terminal
Basic
Archive file*
file
Extract into directory
directory
TasksEach one presets the form for one job
Extract everything
archivedirectory
ParametersOnly these flags are editable in the form
Archive file
path
-f--file
Extract into directory
path
-C--directory
Verbose
boolean
-v--verbose
Strip leading path components
integer
--strip-components
Keep existing files
boolean
-k--keep-old-files
Preserve permissions
boolean
-p--preserve-permissions
Write to standard output
boolean
-O--to-stdout
Only these members
Leave empty to extract everything.
string · positional 0 · repeatable

tar t

List archive

List the members of an archive without extracting.

List archiveExample values, fixed in this page — nothing here reaches a terminal
Basic
Archive file*
file
Verbose (long listing)
-v
TasksEach one presets the form for one job
List contents
archiveverbose
ParametersOnly these flags are editable in the form
Archive file
path
-f--file
Verbose (long listing)
boolean
-v--verbose
SourcesEvery flag above is checked against these
fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

Before it fills your prompt, Otty checks the installed tar against its version. A form that does not match your version is not offered.