>_ IzzyLab

Topic breakdown

tar originally just "glues" a file tree into a single stream (tar = tape archive), while compression is a separate option that runs the result through gzip; hence the double extension .tar.gz. Creating an archive is set by a combination of flags: create mode, the gzip compression flag, and the f flag with the archive filename, after which you list what to pack. To inspect the contents without extracting, list mode (flag t) helps.

What's checked

  1. archive /root/etc-backup.tar.gz created
  2. archive contains the whole /etc

What it looks like