17.Explain the runlevels in Linux.
Ans.
1. There are typically eight runlevels on Linux system, but in Fedora and Linux enterprise we use only seven runlevels.
2. Each of the runlevels have set of process associated with that runlevel that will be started by entering that runlevel.
3. The runlevel on fedora core or Enterprise Linux system and their purpose are:
• 0 - Halt
• 1 - Single user mode
• 2 - Not used (user definable)
• 3 - Full multiuser(without GUI)
• 4 - Not used (User definable)
• 5 - Full Multiuser mode (with GUI)
• 6 - Reboot
4. The ‘/etc/inittab’ file controls the default runlevel for the system to use when it boots.
5. We can easily change runlevels my making changes in ‘/etc/inittab’ file.
6. It will be just below the listing of available runlevels.
id:5:initdefault:
The number 5 in the line means the system will boot into runlevel5.
7. If we want to bot into runlevel 3 then we just have to change the number 5 to 3, so the line looks like this
id:3:initdefault:
The default runlevel on fedora and Linux enterprise is runlevel 5.
8. Runlevel 5 provides a full multiuser environment and starts the X window system to give the user a graphical environment.
Ans.
1. There are typically eight runlevels on Linux system, but in Fedora and Linux enterprise we use only seven runlevels.
2. Each of the runlevels have set of process associated with that runlevel that will be started by entering that runlevel.
3. The runlevel on fedora core or Enterprise Linux system and their purpose are:
• 0 - Halt
• 1 - Single user mode
• 2 - Not used (user definable)
• 3 - Full multiuser(without GUI)
• 4 - Not used (User definable)
• 5 - Full Multiuser mode (with GUI)
• 6 - Reboot
4. The ‘/etc/inittab’ file controls the default runlevel for the system to use when it boots.
5. We can easily change runlevels my making changes in ‘/etc/inittab’ file.
6. It will be just below the listing of available runlevels.
id:5:initdefault:
The number 5 in the line means the system will boot into runlevel5.
7. If we want to bot into runlevel 3 then we just have to change the number 5 to 3, so the line looks like this
id:3:initdefault:
The default runlevel on fedora and Linux enterprise is runlevel 5.
8. Runlevel 5 provides a full multiuser environment and starts the X window system to give the user a graphical environment.
Comments
Post a Comment