tar
QNX SDP8.0Utilities ReferenceUtilities
Create, extract, or list files in a .tar (or compressed t?z) file (POSIX, toybox)
Syntax:
tar [-ctx] [-fhjkmOoSsv] [-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 symbolic links.
- -I prog
- Filter through prog to compress or prog -d to decompress.
- -J
- Compress with xz.
- -j
- Compress with bzip2.
- -m
- Ignore modification time (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.
- -s, --sort
- Sort directories.
- --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.
Filename filter options
Create (-c) command line arguments aren't filtered.
The extract option (-x) applies --anchored by default.
If --exclude is specified, --wildcards-match-slash applies by default.
To disable defaults, use the no- prefix.
- -anchored
- Match name not path.
- -ignore-case
- Case-insensitive.
- -wildcards
- Expand asterisk (*), the question mark (?), and brackets([]), like shell.
- -wildcards-match-slash
-
A wildcard like asterisk (*) in the pattern matches a forward slash ( / ) in the name.
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: