tar

Stores or retrieves files to/from an archive file

tar option [modifiers] [file-list]

The tar (tape archive) utility creates, adds to, lists, and retrieves files from an archive file.

Options

Use only one of the following options to indicate what type of action you want tar to take. You can affect the action of the option by following it with one or more modifiers.

--append

-r Writes the file-list to the end of the archive. This option leaves files that are already in the archive intact, so duplicate copies of files may be in the archive after tar finishes. When tar extracts the files, the last copy of a file in the archive is the one that ends up on the disk.

--create

-c This option takes the file-list given on the command line and stores ...

Get A Practical Guide to Red Hat® Linux® 8 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.