Follow a program

Chapter 4 of 6 · 5 lessons

A command may be handled by the shell or start another program. Follow that distinction through execution, status, process observation, and command lookup. Examples use a POSIX-style shell on Linux; those creating files assume a new, empty disposable working directory. Do not run unfamiliar scripts or signal processes you have not identified.

For each file-writing lesson, use the fresh subdirectory procedure and confirm your location before proceeding.

  1. From command to process
  2. Run a script
  3. Read the exit status
  4. Observe and stop processes
  5. Find a command with PATH