Home
You may like this!
91.
You type the following command:
$ runlevel
5     3
What can you tell about your runlevel status? (Select two.)
  • A.
    The current runlevel is 5.
  • B.
    The current runlevel is 3.
  • C.
    The previous runlevel is 5.
  • D.
    The previous runlevel is 3.
  • E.
    The runlevel is in the process of changing.
  • Answer & Explanation
  • Report
Answer : [B, C]
Explanation :
The first number in the runlevel output is the previous runlevel (the letter N is used to indicate that the system hasn’t changed runlevels since booting). The second number is the current runlevel. Hence, options B and C are both correct, while options A and D are both incorrect. The runlevel changes very quickly, and the runlevel utility doesn’t provide a code to indicate that the runlevel is in the process of being changed, so option E is incorrect.
Report
Name Email  
92.
A system administrator types the following command:
# shutdown -c
What is the effect of this command?
  • A.
    A previously scheduled shutdown is cancelled.
  • B.
    The system shuts down and reboots immediately.
  • C.
    The system shuts down and halts immediately.
  • D.
    The system asks for confirmation and then shuts down.
  • E.
    The system closes all open windows in X without shutting down.
  • Answer & Explanation
  • Report
Answer : [A]
Explanation :
The -c option to shutdown cancels a previously scheduled shutdown, as stated in option A. Options B and C describe the effects of the -r and -h options to shutdown, respectively. No shutdown option asks for confirmation before taking action, although you can delay a shutdown by specifying a shutdown time in the future, so option D is incorrect. No shutdown option closes open windows in X, except as a consequence of shutting down, so option E is incorrect.
Report
Name Email  
93.
Which of the following commands may not be used instead of shutdown in certain circumstances (with appropriate options added to one or the other command)?
  • A.
    reboot
  • B.
    halt
  • C.
    poweroff
  • D.
    telinit
  • E.
    takedown
  • Answer & Explanation
  • Report
Answer : [E]
Explanation :
There is no standard takedown command in Linux, so option E is correct. The reboot command (option A) is equivalent to shutdown -r, halt (option B) is equivalent to shutdown -H, poweroff (option C) is equivalent to shutdown -P, and telinit 0 (option D) is equivalent to shutdown -H.
Report
Name Email  
94.
You want to change to single-user mode on a running system. What command might you use to do this?
  • A.
    runlevel 1
  • B.
    telinit 1
  • C.
    shutdown -1
  • D.
    single-user
  • D.
    halt to 1
  • Answer & Explanation
  • Report
Answer : [B]
Explanation :
The telinit command is used to change runlevels; when it’s passed the 1 parameter, as in option B, telinit changes to runlevel 1, which is single-user mode. The runlevel command (option A) displays the current runlevel but doesn’t change runlevels. Although telinit can be used to shut down or reboot the computer, the shutdown command (option C) can’t be used to change runlevels except to runlevel 0 or 6. There is no standard singleuser command (option D). The halt command (option E), like shutdown, can’t be used to change to single-user mode.
Report
Name Email  
95.
What does runlevel 4 do?
  • A.
    It reboots the computer
  • B.
    It starts a multi-user system without X running.
  • C.
    It starts a multi-user system with X and an X-based login running.
  • D.
    It starts the computer into single-user mode.
  • E.
    Its purpose isn’t standardized, so it can be used for anything you like.
  • Answer & Explanation
  • Report
Answer : [E]
Explanation :
Runlevel 4 isn’t standardized, and most distributions don’t use it for anything specific (although in practice it will do something if you enter it). Thus, you can safely redefine runlevel 4 to achieve specific goals, and option E is correct. Option A describes runlevel 6. Option B describes runlevel 3 on Red Hat and related distributions. Option C describes runlevel 5 on Red Hat and related distributions. Option D describes runlevel 1.
Report
Name Email