>_ IzzyLab

Topic breakdown

In Unix a file's "hiddenness" is not an attribute but a convention: names starting with a dot (dotfiles) are not shown in ls by default, and the -a flag helps show them. When a file is hidden somewhere deep in the directory tree, walking it by hand takes a while — the recursive find comes to the rescue with conditions on type (-type f) and on the name pattern (-name). A pattern with a dot at the start is worth putting in quotes so the shell doesn't expand it itself.

What's checked

  1. file /root/answer.txt created
  2. secret word written to answer.txt

What it looks like