Table of Contents
tar
reference
-c |
create |
-x |
extract |
-t |
list |
-v |
verbose |
-z |
gzip |
-C DIR |
change directory |
-f FILE |
target file |
target
├── a.txt
└── path
└── b.txt
tar: Removing leading '/' from member names
a tmp/target
a tmp/target/a.txt
a tmp/target/path
a tmp/target/path/b.txt
tmp
└── target
├── a.txt
└── path
└── b.txt
a .
a ./a.txt
a ./path
a ./path/b.txt
out
├── a.txt
└── path
└── b.txt
a target
a target/path
a target/path/b.txt
a target
a target/a.txt
a target/path
a target/path/b.txt
x target/
x target/a.txt
x target/path/
x target/path/b.txt
drwxr-xr-x 0 hoey staff 0 Jan 30 10:26 target/
-rw-r--r-- 0 hoey staff 0 Jan 30 10:23 target/a.txt
drwxr-xr-x 0 hoey staff 0 Jan 30 10:26 target/path/
-rw-r--r-- 0 hoey staff 0 Jan 30 10:23 target/path/b.txt
x target/a.txt