crarko adds: There are a number of ways to accomplish the viewing of man pages in Preview such as this older hint. The method can vary between versions of Mac OS X. The present hint is an addition to the list of methods. This guide helps you get started using Pages 10.3 on your Mac. To see the version of Pages on your Mac, choose Pages About Pages (from the Pages menu at the top of your screen). To explore the Pages user guide, click Table of Contents at the top of the page, or enter a word or phrase in the search field.
Create, add files to, or extract files from an archive file in gnutar format, called a tarfile. Tape ARchiver; manipulate 'tar' archive files.
tar creates and manipulates streaming archive files.
This implementation can extract from tar, pax, cpio, zip, jar, ar, and ISO 9660 cdrom images and can create tar, pax, cpio, ar, and shar archives.
The first synopsis form shows a 'bundled' option word. This usage is provided for compatibility with historical implementations. See COMPATIBILITY below for details.
This implementation can extract from tar, pax, cpio, zip, jar, ar, and ISO 9660 cdrom images and can create tar, pax, cpio, ar, and shar archives.
The first synopsis form shows a 'bundled' option word. This usage is provided for compatibility with historical implementations. See COMPATIBILITY below for details.
In -c, -r, or -u mode, each specified file or directory is added to the archive in the order specified
on the command line. By default, the contents of each directory are also archived.
In extract or list mode, the entire command line is read and parsed before the archive is opened.
The pathnames or patterns on the command line indicate which items in the archive should be processed.
Patterns are shell-style globbing patterns as documented in tcsh(1).
on the command line. By default, the contents of each directory are also archived.
In extract or list mode, the entire command line is read and parsed before the archive is opened.
The pathnames or patterns on the command line indicate which items in the archive should be processed.
Patterns are shell-style globbing patterns as documented in tcsh(1).
Environment
The following environment variables affect the execution of tar:
LANG The locale to use. See environ(7) for more information.
TZ The timezone to use when displaying dates. See environ(7) for more information.
TZ The timezone to use when displaying dates. See environ(7) for more information.
Exit Status
The tar utility exits 0 on success, and >0 if an error occurs.
Examples
To tar and zip a file
To view a detailed table of contents for this archive:
To tar a folder (with all sub-folders and files)
The reverse process to extract the file
Extract a file, autodetecting the format, in this case an xz archive:
To extract all the C sources and headers from an archive named backup.tar:
![Macos Macos](https://wallpapersite.com/images/pages/ico_n/19292.png)
Note that the pattern must be quoted to prevent the shell from attempting to expand it according the files in the current working directory (the shell does not have access to the list of files in the archive, of course).
To move file hierarchies, use a command line like this:
To move file hierarchies, use a command line like this:
To create a compressed archive on diskette, using gzip(1), use a command-line like:
Macos Man Pages Location
Note that you cannot mix bundled flags and --style flags; you can use single-letter flags in the manner above, rather than having to type tar --block-compress --gzip --verbose --file /dev/fd1a --block-size 20 tar/
The above-created diskette can be listed with
tar tvfbz /dev/fd1a 36
To join two gnutar archives into a single archive, use
Macos Man Pages
tar Af archive1.tar archive2.tar
which will add the files contained in archive2.tar onto the end of
archive1.tar (note that this can't be done by typing:
archive1.tar (note that this can't be done by typing:
cat archive2.tar >> archive1.tar
because of the end-of-file block at the end of a gnutar archive).
To archive all files from the directory srcdir, which were modified after
Feb. 9th 1997, 13:00 h, use
To archive all files from the directory srcdir, which were modified after
Feb. 9th 1997, 13:00 h, use
Notes
Always tar -t before tar -x to check if the archive contents have been placed inside one subdirectory or will just spill all over the current directory.
The -C feature does not work like historical gnutar programs, and is probably untrustworthy.
The -A command should work to join an arbitrary number of gnutar archives together, but it does not; attempting to do so leaves the end-of-archive blocks in place for the second and subsequent archives.
The gnutar file format is a semi fixed width field format, and the field for device numbers were designed for 16 bit (8 major, 8 minor) and can not absorb our 32 bit (8 major, 16+8 minor) numbers.
Environment Variables
'To disarm the bomb simply enter a valid tar command on your first try. No Googling' ~ XKCD
Related macOS commands:
bzip2(1)
cpio - Copy files to and from archives.
compress - compress and expand data.
gzip - Compress or decompress files.
pax(1)
rmt - remote magtape protocol module.
info tar
Equivalent Windows command: TAR - Store, list or extract files in an archive.
cpio - Copy files to and from archives.
compress - compress and expand data.
gzip - Compress or decompress files.
pax(1)
rmt - remote magtape protocol module.
info tar
Equivalent Windows command: TAR - Store, list or extract files in an archive.
Copyright © 1999-2021 SS64.com
Some rights reserved
Some rights reserved