Back to commands

Linux Survival Basics

Read-only

Read Load Average Before You React

You need a fast snapshot of system load and how long the machine has been running.

Command

uptime

Before you run this

System impact: Read-only. Low when scoped to the shown target.

When not to use it: Do not assume high load always means CPU saturation; blocked I/O can raise load too.

Expected output

A single line showing current time, uptime, user count, and 1, 5, and 15 minute load averages.

System impact

Read-only. Nothing changes. The command prints uptime, users, and load averages.

Recovery / rollback: no state is changed.

When to use it

Use at the start of performance triage to see whether pressure is rising or falling.

When not to use it

Do not assume high load always means CPU saturation; blocked I/O can raise load too.

next steps

Related commands

Linux Survival Basics Can be slow

Find the Files Eating Your Disk

The disk was full, but guessing at folders was the slow part.

find /var -type f -printf '%s %p\n' | sort -nr | head -20
Linux Survival Basics Read-only

Compare Kernel and Distro Versions

The distro version and kernel version answer different questions.

printf 'kernel=%s arch=%s distro=%s\n' "$(uname -r)" "$(uname -m)" "$(lsb_release -ds)"
Linux Survival Basics Sensitive output

Show Recent Server Reboots

Confirm whether the server actually rebooted and when.

last -x reboot | head -5
Linux Survival Basics Sensitive output

Scan a Host SSH Key

Keyscan collects a presented key; it does not verify trust.

ssh-keyscan -t ed25519 hostname
Study mapping

Use this as independent command practice: read the notes, predict the output, then compare it with the example before using a real shell.

  • LPIC-1 style command-line practice
  • LFCS style performance-task practice

Independent study support only. No affiliation, endorsement, exam dumps, or real exam questions.