O'Reilly logo

A Practical Guide to Red Hat® Linux® 8 by Mark G. Sobell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required