Terminal devices are identified by ID numbers, beginning with 1 for the first device. The runlevel at which the terminal operates is usually 1. The action is usually respawn, which means to run the process continually. The process is a call to the mingetty, mgetty, or agetty with the terminal device name.
Wrong editing in this file could be dangerous even it could crash Linux system. We suggest you to take back up first before editing in this file.
#cp /etc/inittab /rootWith this file you can change default run level, increase virtual terminals and disable ALT+CTRL+DEL key combination to restart the system.
After taking backup open /etc/inittab file
Change Default Run Level
Linux have seven run levels. Functions of all run level are
shows a default starting point in runlevel 5, which is associated with the GUI
id:5:initdefault:
To change this default runlevel locate this tag id:5:initdefault: Now replace the value 5 to 3 as show here to boot system in run level 3 Save the file and restart the system it will boot now in run level 3.
How to disable ALT+CTRL+DEL key combination
By default ALT+CTRL+DEL key combination is used to restart the system. This default behavior is also controlled by this tag in /etc/inittab file.
By some mean if you don't want to use ATL+CTRL+DEL key to restart the system. Put a hash # sign to this tag and save the file and restart the system. Now you cannot restart the by ATL+CTRL+DEL key.
How to increase the number of virtual consoles
Virtual consoles are configured in /etc/inittab. By default, RHEL is configured with six virtual consoles. You can configure up to twelve virtual consoles in /etc/inittab. Here are the default /etc/inittab entries for the first six virtual consoles:
To increase the number of virtual console copy the configuration line of last virtual console and past just below the default line and change the number as shown in image. Save file and restart the system.
After restart you can login in to increased terminals by pressing ALT+Funcation key combinations.
Other use full commands
#init [run level]
This will take you on run level one.
#init 1
#telinit 1
#runlevel
0 Comment:
Post a Comment