command not foundfor a file that exists is a reason to look atecho $PATHandtype name.- Pick the help by the command's type:
--helpandmanfor program files,helpfor 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
exportin 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-statuswas not found by name because~/toolsis not in PATH; a full path needs no lookup, so the tool worked.
Step 8 of 8 · summary · 2 min
Summary
Found an inaccuracy? Report an error in the lesson