InterviewSolution
| 1. |
What Are The Run Levels In Linux And How To Change Them? |
|
Answer» A run level is a state of init and the whole SYSTEM that defines what system services are operating and they are identified by numbers.There are 7 different run levels PRESENT (run level 0-6) in Linux system for different purpose. The descriptions are given below. 0: HALT System (To shutdown the system) To change the run level, edit the file “/etc/inittab” and change initdefault entry ( id:5:initdefault:). If we WANT to change the run level on the fly, it can be done using ‘init’ command. For example: when we type ‘init 3′ in the commandline , this will move the system from current runlevel to runlevl 3. Current level can be listed by typing the command ‘who -r’. A run level is a state of init and the whole system that defines what system services are operating and they are identified by numbers.There are 7 different run levels present (run level 0-6) in Linux system for different purpose. The descriptions are given below. 0: Halt System (To shutdown the system) To change the run level, edit the file “/etc/inittab” and change initdefault entry ( id:5:initdefault:). If we want to change the run level on the fly, it can be done using ‘init’ command. For example: when we type ‘init 3′ in the commandline , this will move the system from current runlevel to runlevl 3. Current level can be listed by typing the command ‘who -r’. |
|