> For the complete documentation index, see [llms.txt](https://strangebutohwell.gitbook.io/knowledge/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://strangebutohwell.gitbook.io/knowledge/linux/file-system/file-management/tar-command.md).

# tar (command)

## Man Page

{% embed url="<https://linux.die.net/man/1/tar>" %}

## Syntax

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

### # Create archive.tar from files foo and bar.

`tar -cf archive.tar foo bar`

### # Extract all files from archive.tar.

`tar -xf archive.tar`

### # Options

#### extract files from an archive

`-x, --extract, --get`

use archive file or device ARCHIVE

`-f, --file=ARCHIVE`
