# 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`
