Click tokens to build each tar command | Click a command token to remove it
Scenario: You are a systems administrator and have created an
uncompressed backup of the
application directory. Build the command you used.
Click tokens to add them to the command bar. The ˽ spacebar may be used multiple times. Click a command token to remove it. Not all tokens will be used.
tarclick tokens above to build the command…
Correct command breakdown
Token
Meaning
Why it is needed
tar
Tape Archive
Base command — pre-filled.
-cvf
Create · Verbose · File
c = create a new archive. v = verbose (lists files as added). f = next argument is the filename.
/backups/application.tar
Destination archive path
The .tar extension (no .gz / .bz2) confirms the archive is uncompressed.
application
Source directory
The directory to archive. Must follow the destination filename when using -f.
Distractors — not used
-xvf — x means extract; wrong for a create operation.
-C — changes extraction directory; not needed when creating.
Scenario: Several hours later you must
restore the application from the uncompressed backup at
/backups/application.tar. Build the restore command.
Click tokens to add them to the command bar. The ˽ spacebar may be used multiple times. Click a command token to remove it. Not all tokens will be used.
tarclick tokens above to build the command…
Correct command breakdown
Token
Meaning
Why it is needed
tar
Tape Archive
Base command — pre-filled.
-xvf
eXtract · Verbose · File
x = extract from archive. v = verbose. f = next arg is the archive filename.
/backups/application.tar
Source archive
The uncompressed backup. The .tar extension means no decompression flag is needed.
Note: You do not add the application directory token —
tar recreates it automatically from the archive.
Distractors — not used
-cvf — c creates an archive; this is the restore (extract) tab.