Go to the previous, next section.

Extracting Specific Files

(This message will disappear, once this node revised.)

To extract specific files, specify them using file name arguments.

In an example above, you created the archive file `~/practice/records', which contained the files `blues', `folk' and `jazz' in the `practice' directory. If, for some reason, you were to lose one of those text files (`rm ~/practice/blues'), you could extract it from the archive file.

First, change into the `practice' directory. Then,

% tar --extract --file=records blues

If you list the contents of the directory, you will see that `blues' is back:

% ls
folk
jazz
records
blues

Go to the previous, next section.