Dit deel is nog niet vertaald. Je ziet de Engelse tekst.
Wat het doet
The load average is the number of processes that run or wait (for CPU or disk), as an average over 1, 5 and 15 minutes. Compare it with the number of CPU cores (nproc): a load of 4 on 2 cores means processes wait.
Zo schrijf je het
uptime [OPTION]...Opties 4
Meest gebruikt
Niets past bij dit filter.
Voorbeelden 10
$ als gewone gebruiker# als root (of met sudo)
1Default output
uptime 10:52:01 up 2:54, 2 users, load average: 0.15, 0.10, 0.09Time, run time, users, load 1/5/15 minutes.
2Run time in words
uptime -p up 2 hours, 54 minutesEasy to read.
3Boot time
uptime -s 2026-10-25 07:58:12Did the server reboot in the night?
4Load per core
echo "$(cut -d' ' -f1 /proc/loadavg) / $(nproc)" | bc -lOver 1.0 = more work than cores.
5Raw load data
cat /proc/loadavg 0.15 0.10 0.09 1/182 4410Also running/total processes and the last PID.
6Watch the load
watch -n 5 uptimeThe 1-minute value reacts first.
7On many servers
Quick overview.
8Unexpected reboot? (security)
uptime -s; last -x reboot | head -3Compare with the change calendar.
9Same line in w and top
w and top show the uptime line first.
10Alert on high load in a script
Simple check for cron.
Niets past bij dit filter.
Bestanden
/proc/uptime- Seconds since boot.
/proc/loadavg- Load averages.
Exitcodes
0 :: Done. 1 :: Error.