RSS2.0

RHCE RHCT Exam questions : How to change Linux default run level

Tuesday, March 21, 2006

You shoud know how to change Redhat Linux system default run level for RHCE and RHCT exam preparation and questions :

1. edit /etc/inittab file and changerun level from level 5 (which is X or GUI mode ) to run level 3


# vi /etc/inittab
id:3:initdefault:

2. simply reboot the server and your default run level changes to level 3 which is text based linux session.

3.How to dynamically change the runlevel of Linux system without rebooting

  • e.g: switch to single user mode :
# telinit S
  • e.g: switch to X or GUI (desktop) mode
#telinit 5
  • e.g:If you have made changes to the /etc/inittab file to change the default runlevel and want to change the system to that new default you can do so by using the telinit with the q command-line option:
# telinit q

0 comments: