Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions tar.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ tar -xzf archive.tar.gz -C /target/directory
tar -zu archive.tar.gz -C /target/file
```

```shell
# List the contents of an archive
tar -tf archive.tar.gz
```

### Common options

| Option | Description |
Expand All @@ -44,3 +49,4 @@ tar -zu archive.tar.gz -C /target/file
| `f` | filename of the archive |
| `v` | verbose, display what is inflated or deflated |
| `a` | unlike of `z`, determine compression based on file extension |
| `t` | list the contents of an archive