Which of the following commands can be used to determine how long the system has been running? (Choose TWO correct answers.)
Click on the arrows to vote for the correct answer
A. B. C. D. E.AC
The correct answers are A) uptime and B) up.
A) uptime: The uptime command is used to display how long the system has been running since the last reboot or startup. It also displays the current time, the number of logged in users and the system load average for the past 1, 5, and 15 minutes.
To use the uptime command, simply type "uptime" into the terminal and press enter. The output will display the system uptime in days, hours, minutes, and seconds.
B) up: The up command is another way to display the system uptime. It is a shortcut for the uptime command and displays the same information in a more concise format.
To use the up command, simply type "up" into the terminal and press enter. The output will display the system uptime in the format "up X days, X hours, X minutes".
C) top: The top command is used to display system processes in real-time, it does not display the system uptime.
D) uname -u: The uname command is used to display system information, but the "-u" option only displays the operating system name.
E) time -up: The time command is used to measure the execution time of a command or script, and the "-up" option is not a valid option for this command.