Monday 31 October 2011

Boot Process in Linux

To View the default runlevel while booting the Linux Operating System
[root@tsmservertest ~]# vi /etc/inittab

id:5:initdefault:  (End of the line in Fedora OS)

Note: It means that OS by default always boot to GUI mode.


To View the current runlevel

[root@tsmservertest ~]# runlevel
N 5


To Switch to another runlevel and check the runlevl
[root@tsmservertest ~]# init 3
[root@tsmservertest ~]# runlevel
5 3

[root@tsmservertest ~]# init 2
[root@tsmservertest ~]# runlevel
3 2


[root@tsmservertest ~]# init 1
[root@tsmservertest ~]# runlevel
1 S


[root@tsmservertest ~]# init 6


To View the grup configuration file


[root@localhost ~]# cat /boot/grub/grub.conf

0 comments:

Post a Comment

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Affiliate Network Reviews