terminal.cab

Linux Basics Lesson 24 of 38

guestLevel 1Badges and progress0/100 XP, XP to the next levelStreak0

The server is glowing

Rescue 90 XP

8 minutes

Learning goals

The tools from this module are ready for you, with a few limits on this page. grep is not loaded, so ps aux | grep python gives you command not found here. Instead, use ps aux --sort=-%cpu, which puts the biggest on top, or pgrep -a python3. top and sudo are not loaded either, and they answer with a hint.

Steps

Step 1/3: Find the process that is eating the CPU, and note its PID.

Rescue 90 XP

Monitoring alarm: The CPU on web-01 has been at 100 % for 20 minutes, and the API is answering slowly. You log in. Find the culprit and get rid of it, and do not take anything else down with it.

  1. Step 1

    Find the process that is eating the CPU, and note its PID.

  2. Step 2

  3. Step 3

Loading terminal …

lerner@web-01: ~bash
lerner@web-01:~$

Esc, then Tab leaves the terminal

Step 1 of 3

Cards

  1. Card 1 of 2

    Tap the card or press Space to turn it over.

  2. Card 2 of 2

    Tap the card or press Space to turn it over.

Cheat sheet

The most important command lines of this module on one A4 page, black and white, to print or keep on your phone.