tar
QNX SDP8.0Utilities ReferenceUtilities
Create, extract, or list files in a .tar (or compressed t?z) file (POSIX, toybox)
Syntax:
tar [-ctx] [-fhjkmOoSv] [-CfTX name] [--selinux] [file...]
Runs on:
QNX OS
Options:
- -C name
- Change to the specified directory first.
- -c
- Create.
- --exclude
- Exclude the specified filename.
- -f name
- .tar the specified file (default
-
). - --full-time
- Show seconds with -tv.
- --group name[:gid]
- Set file group.
- -h
- Follow symlinks.
- -I prog
- Filter through prog to compress or prog -d to decompress.
- -J
- Compress with xz.
- -j
- Compress with bzip2.
- -m
- Ignore mtime.
- --mode mode
- Adjust permissions.
- --mtime time
- Override timestamps.
- --no-recursion
- Skip directory contents.
- --null
- Separate filenames in -T with NULL, not with
newline
. - --numeric-owner
- Use numeric uid or gid, not user or group names.
- -O
- Extract to stdout.
- -o
- Ignore owner.
- --owner name[:uid]
- Set file ownership.
- -t
- Test (list).
- --restrict
- Restrict to all under one directory.
- --selinux
- Save or restore labels.
- --sparse
- Record sparse files.
- --strip-components num
- Ignore first num directory components when extracting.
- -T name
- Include the specified names in file.
- -v
- Verbose display.
- -X name
- Exclude the specified name in file.
- -x
- Extract.
- --xform=sed
- Modify filenames via sed expression (e.g. s/R/g).
- -z
- Compress with gzip.
- file
- The pathname of the file to use as input.
Description:
This utility is provided as part of the toybox package. For information on how to enable it, see toybox.
Contributing author:
Rob Landley and the toybox project (see https://landley.net/toybox/).
Page updated: