Exam LFCS All QuestionsBrowse all questions from this exam
Question 86

Which of the following commands can be used to determine how long the system has been running? (Choose TWO correct answers.)

    Correct Answer: A, C

    To determine how long the system has been running, the commands 'uptime' and 'top' can be used. The 'uptime' command directly shows the system uptime along with other statistics such as load averages. The 'top' command, although primarily used for monitoring system processes and resource usage, also displays the system uptime at the top of its output. Other options listed like 'up', 'uname -u', and 'time -up' are not valid for determining system uptime.

Discussion
9866666Options: AC

The correct answers are: A. uptime - This command directly shows how long the system has been running, along with other information like load average and number of users. C. top - While primarily used to monitor processes and resource usage, the top command also displays system uptime in its header. The other options are incorrect: B. up: There is no standard Linux command called up. D. uname -u: This command shows the system's kernel version. E. time –up: The time command is used to measure the execution time of other commands. There is no -up option for it.