m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/tar.md
blob: 1560c7cad9294b7e1a6cb335139ddf9a86fc7f1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Manipulating tarballs

## Create (-c)

    tar -cf <new archive name> <files>
    # usually tar -cf directory.tar directory/

    # gzipped:
    tar -czf archive.tar.gz files...

## List contents (-t)

    tar -tf <archive>

## Extract (-x)

## Append (-r)