The big picture

Moving around with cd and ls is fine for a few directories. For a whole tree you want the overview:

  • tree DIR draws the structure under DIR.
  • find DIR -name NAME searches every directory under DIR, hidden ones included, and prints the path of each match.
  • find DIR -type d lists only directories, and -type f lists only files.
tree /lab/navigator
find /lab/navigator -name gem.txt

Real world: find / -name nginx.conf is how you locate a config file on a machine you have never seen before. Pipe the result into other tools, and that comes in a later course.