Linux Labs

First steps / Stage 14 of 15

Help and the shell

Not running Starting usually ~20 s
Leave the lesson

Step 8 of 8 · summary · 2 min

Summary

  • command not found for a file that exists is a reason to look at echo $PATH and type name.
  • Pick the help by the command's type: --help and man for program files, help for Bash builtins.
  • Before running a command Bash fills in variables and patterns: single quotes stop both, double quotes stop the pattern only. A pattern with no matches stays text.
  • A one-off setting is an export in the terminal, a lasting one is a line in ~/.bashrc, and you check it in a new shell.
  • At the start of the lesson lab-status was not found by name because ~/tools is not in PATH; a full path needs no lookup, so the tool worked.
Ubuntu 24.04
Loading…