GO KALI FREE
System Information

uptime Linux Command

Shows how long the system has been running along with load averages.

What does uptime do?

Shows how long the system has been running along with load averages.

Syntax

uptime

Practical example

uptime

Questions about uptime

What does uptime show?

It shows the current time, how long the system has been running, how many users are logged in, and the 1/5/15-minute load averages.

What do the load averages mean?

Load averages show the average number of processes in runnable or uninterruptible state. A value equal to CPU count means fully utilized.

How do I see system uptime in seconds?

Use `cat /proc/uptime` to see uptime in seconds. The first number is total uptime, second is idle time.

How do I see uptime since a specific date?

Use `uptime -s` to see the exact date and time when the system was last booted.

What is a high load average?

A load average higher than your CPU count indicates the system is overloaded. For a 4-core CPU, load above 4 means processes are waiting.

How do I see how many users are logged in?

The `uptime` output shows the user count. You can also use `who | wc -l` to count logged-in users.

How do I see uptime in a human-readable format?

Use `uptime -p` to see uptime in a friendly format like 'up 3 days, 2 hours, 15 minutes'.

How do I check if the system was rebooted?

Use `last reboot | head -5` to see the last 5 reboot times and dates.

Related System Information

uname

Prints system information such as kernel name, version, and architecture.

hostnamectl

Displays and changes the system hostname and related settings.

unalias

Removes a previously defined command alias.

lscpu

Displays detailed CPU architecture information.

alias

Creates or displays command aliases (shortcuts for longer commands).

lsblk

Lists information about all available block devices (disks and partitions).