Linux Labs

First steps / Final lab

First day on the server

medium ~30 min
Not running Starting usually ~20 s
Report a problem

Situation

Your first day on a new server. The previous admin moved to another project and put everything he had been working on into ~/handover — all mixed up, across different subdirectories. His parting note: "There are the configs, my srvstat tool and the nightly deploy log deploy.log. The log shows which services deploy worst — start with those."

Task

Sort things out into directories under ~/server so that:

  1. ~/server/conf holds every *.conf config from ~/handover with its contents unchanged — and nothing else;
  2. the deploy log sits at ~/server/logs/deploy.log;
  3. ~/server/failed-by-service.txt has, for each service with failed deploys, their number and the service name — one line per service, separated by a space, the most frequent first;
  4. the srvstat tool sits in ~/server/bin and is found by name in a new shell.

The check opens a new 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 4
  • ~/server/conf holds every *.conf config from ~/handover, unchanged, and nothing else — not checked yet
  • The deploy log sits at ~/server/logs/deploy.log — not checked yet
  • ~/server/failed-by-service.txt lists the failed deploy count and service, most frequent first — not checked yet
  • srvstat sits in ~/server/bin and is found by name in a new shell — 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…