Change runlevels and Shutdown Flashcards
(23 cards)
What run level is single user mode?
1
What run level is used to shut down a computer?
0
Which distro uses run level 2?
Debian
Which distro uses run level 3?
Fedora, Mandriva, Red Hat (non graphical login)
Which distro uses run level 4?
Custom and not defined
Which distro uses run level 5?
Fedora, Mandriva, Red Hat (graphical login)
What uses run level 6?
Reboot computer
Which file hold the programs run at various run levels?
/etc/inittab
What two commands display the runlevel?
runlevel and who -r
What letter is the first letter in the filename to stop a script at runlevel?
K
What letter is the first letter in the filename to start a script at runlevel?
S
How are the script run in the correct order for runlevel?
They are numbered
What are the SysV folders?
/etc/rc0.d
What command will check list services and their applicable runlevels?
chkconfig
What command will start a service at a particular runlevel?
chkconfig –level xxx service on
What command will stop a service at a particular runlevel?
chkconfig –level xxx service off
What command will add a script at runlevel?
chkconfig –add script_name
What is used to manage runlevels in Red Hat, Fedora and Mandriva?
ntsysv
If you typed in runlevel and saw the output N 2 - what does the N stand for?
Not changed run level since boot?
What does the command init do?
Change runlevel
Why is telinit different from init?
It will reread the /etc/inittab
What command will shutdown the computer in 10 minutes time?
shutdown -h +10 “system shutdown in 10 minutes”
What individual command will immediately shutdown the computer with no warning?
halt or init 0