>_ IzzyLab

Topic breakdown

Extraction from an archive in tar is enabled by the x (extract) flag — the mirror of the creating c; the compression z and file name f remain the same. By default tar extracts into the current directory, and to direct extraction into a specific folder you use the -C flag. A subtlety people stumble over: tar does not create the target directory itself — if it doesn't exist, extraction will fail, so the destination folder must be created in advance.

What's checked

  1. archive extracted into /root/dest

What it looks like