tar

Tar is used to create a single (tar) file that contains multiple files. The tar command archives and extracts files to and from a single file called a tarfile. A set of files can be "tarred" to create a single tar file, and a tar file can be "untarred" to extract the individual files.

Creating a tar file

Extracting files from a tar file

To extract files from a tar file, use the x command line arguments to tar:
	% tar xvf hw10.tar
	handin/
	handin/README
	handin/btree.c
	handin/btree.h
	handin/main.c

To see the set of files in a tar file

To list the contents of a tar file, use the tf (or tvf) command line argument:
	% tar tf hw10.tar
	handin/
	handin/README
	handin/btree.c
	handin/btree.h
	handin/main.c
For more information look at the man page for tar: % man tar