Required options | What It Does | Examples |
---|
-A | Add another archive to the end of the current archive | tar -Af oldarch newarch.tar |
-c | Create a new archive | tar -cf newarch.tar * |
-d | Compare archived files with source files and report differences | tar -df tararch.tar |
-delete | Remove file from archive file | tar -df tararch.tar file26.txt |
-r | Append files to end of archive file | tar -rf tararch.tar rep* |
-t | Display names of files in archive | tar -tf tararch.tar |
-u | Add files if not already in archive or if they have been modified | tar -uf tararch.tar rep* |
-x | Extract files from the archive | tar -xf projarch.tar |