LFCS · Question #864
Which of the following commands can be used to determine how long the system has been running? (Choose TWO correct answers.)
The correct answer is A. uptime C. top. The uptime command directly reports how long the system has been running, and the top command also displays this information in its header.
Question
Options
- Auptime
- Bup
- Ctop
- Duname -u
- Etime up
How the community answered
(31 responses)- A87% (27)
- B3% (1)
- D6% (2)
- E3% (1)
Why each option
The `uptime` command directly reports how long the system has been running, and the `top` command also displays this information in its header.
The `uptime` command is specifically designed to show the current time, how long the system has been running, the number of logged-in users, and the system load averages.
`up` is not a standard Linux command for displaying system uptime.
The `top` command provides a real-time view of running processes and system statistics, and its output header includes the system's uptime, among other details like current time and load averages.
`uname -u` is not a valid or standard option for the `uname` command and does not report system uptime.
`time up` is not a valid command to check system uptime; `time` is used to measure the execution duration of another command.
Concept tested: System uptime commands
Source: https://man7.org/linux/man-pages/man1/uptime.1.html
Topics
Community Discussion
No community discussion yet for this question.