_                    _
  ___ | |__   __ _ _______ | |_
 / _ \| '_ \ / _` |_  / _ \| __|
| (_) | | | | (_| |/ / (_) | |_
 \___/|_| |_|\__,_/___\___/ \__|

tararchive 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

back_to_top

tar(1)

<tar.oh>

back_to_top

ohazot | about | ohazot.com <admin@ohazot.com>

Created:2025-10-03|Updated:2025-10-06 OpenBSD linux