_ _
___ | |__ __ _ _______ | |_
/ _ \| '_ \ / _` |_ / _ \| __|
| (_) | | | | (_| |/ / (_) | |_
\___/|_| |_|\__,_/___\___/ \__|
tar
—
archive tool: usage
back_to_top
tar -zvcf TAR_FILE
DIRECTORY
tar -zvcf TAR_FILE
DIRECTORY/*
tar -zvxd TAR_FILE
back_to_top
-c |
: compress |
-x |
: extract |
-v |
: verbose |
-f |
: file, needs the file as an argument. Eg.: -f filename |
-z |
: use gzip compression |
-j |
: use bzip2 compression |
-t |
: list archive contents |
The options can be collapsed but f needs to be the last option. Eg.:
tar -zvxf tar_file