What does the uptime command show in UNIX?

What does the uptime command show in UNIX?

a) The system’s uptime since the last reboot
b) CPU usage
c) Disk space usage
d) List of active users

Answer:

a) The system’s uptime since the last reboot

Explanation:

The uptime command in UNIX displays how long the system has been running since its last reboot. In addition to uptime, it also shows the current time, the number of active users, and the system load averages over the past 1, 5, and 15 minutes.

This information is critical for system administrators who need to monitor system stability and performance. Systems that run for long periods without downtime are typically considered stable and reliable, which is essential for production environments.

Understanding system uptime is important for scheduling maintenance, detecting abnormal restarts, and ensuring that the system performs optimally over time. The uptime command provides a quick snapshot of system health and performance.

Reference:

Top 50 Unix MCQ Questions & Answers

Scroll to Top