Making things

Start in your lab: cd /lab/workshop.

  • mkdir NAME makes a directory. On a real system, mkdir -p a/b/c makes the whole chain at once.
  • touch FILE creates an empty file, or, if the file exists, updates its modification time and leaves the content alone.
mkdir archive
touch archive/index.txt
ls archive

Real world: touch is how you create a placeholder (.gitkeep) or a marker that a script checks for, like the .statue_defeated flag in this very game.