tar—stores and retrieves files from an archive file, normally a tape device
tar [ – ] c|r|t|u|x [ bBefFhilmopvwX0134778 ] [ tarfile ]
[ blocksize ] [ exclude–file ] [ –I include–file ]
filename1 filename2 . . . –C directory filenameN ...
Example A.57.
1 tar cvf /dev/diskette
2 tar tvf /dev/fd0
3 tar xvf /dev/fd0
EXPLANATION
Sends all files under the present working directory to tape at device /dev/diskette, and prints the files that are being sent. Displays the table of contents of what is on tape device /dev/fd0. Extracts all files from tape and prints which files were extracted.
|