|
Tar is a utility used to create an archive file, called a tarball. Files can be added to the archive file or removed from the archive file using tar. The action of tar depends on the options used. Format: tar options tarfile filelist Examples: tar -cf newarch.tar * tar -xf oldarch The first example creates a new archive file called newarch and stores all the files in the current directory in the new archive. It's customary to name the file with a .tar extension. The second example extracts all the files in the archive oldarch. After extraction, the files are in the current directory and the archive is still there also. Tar has two types of options. One option from the function options is required, determining the action tar performs. The second table lists normal options, totally optional.
|
|