Linux Labs

First steps / Stage 14 of 15 · step 7 of 8

Command not found

easy ~15 min
Not running Starting usually ~20 s
Report a problem

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:

  1. the basic commands ls, cat and grep are found by their short names;
  2. tool is 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.

Visible only to you. Saved as you type.

All notes

Lab goals

0 of 2
  • In a new deploy shell, ls, cat and grep are found by name — not checked yet
  • In a new deploy shell, tool is found by name — not checked yet

Hints

0 of 3 open · they open one at a time
Hint 1
Show the solution after 3 failed checks

Leave the lab?

The machine keeps running for 10 more minutes, then it is removed. Files are lost; completed goals stay.

Loading…