Step 7 of 8 · lab · 15 min
Command not found
User deploy suddenly cannot find even ls. Give the commands back so the fix survives a new login.
Situation
Yesterday a colleague set up the tool utility from /opt/tool/bin for the deploy user.
Today almost no command is found in deploy's shell — not even ls and cat, although they
work by full path (/usr/bin/ls). tool is not found either.
Enter deploy's shell with sudo -iu deploy, and get back to your own with exit.
Task
Make it so that in a new deploy shell:
- the basic commands
ls,catandgrepare found by their short names; toolis found by its short name too.
The check opens a new deploy shell, as on a fresh login: a setting made only in the open terminal is invisible to it.
Lab · on your own
No commands are given in this lab: type them in the terminal yourself. Goals are checked on the machine after every command.
Goals
0 of 2-
In a new deploy shell, ls, cat and grep are found by name — not done yet
-
In a new deploy shell, tool is found by name — not done yet
The machine is starting
Hints
0 of 3Lab goals
0 of 2-
In a new deploy shell, ls, cat and grep are found by name — not done yet
-
In a new deploy shell, tool is found by name — not done yet
Goals are checked on the machine after every command.