Linux Labs

First steps / Stage 14 of 15

Help and the shell

Not running Starting usually ~20 s
Leave the lesson

Step 7 of 8 · lab · 15 mineasy

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:

  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.

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
Ctrl+Enter
Starts the machine node1 · Ubuntu 24.04

The machine is starting

Hints

0 of 3

Lab 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
node1 Ubuntu 24.04

Lab 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
Loading…