Create UR Own Runlevel In *nix System – Part 1

Creating a new runlevel or Modifying an existing  runlevels are fun . After reading the following u can master the runlevel concept .

1st to know what is a runlevel and where it is used ?

Runlevel is a system state in which some services are started and some are killed according to the need . Runlevel is controlled by the the parent process “INIT” . Like there are 6 run levels bydefault in any Linux.Unix systems as follows ;

Runlevel 0 – init 0 – halt – used to halt a system

Runlevel 1 – init 1 – Single User Mode – Used for system maintainnance like backup etc. and in this the network services are stopped and only single user can logged in to a system for the maintainnance .

Runlevel 2 – init 2 – Same as runlevel 3 but without NFS

Runlevel 3 – init 3 – Full multiuser mode with networking but without  X11 i.e. GUI  is absent .

Runlevel 4 – init 4 – Reserved for future purpose or u can edit this to create ur own runlevel

Runlevel 5 – init 5 – Full multiuser with X11 support

Runlevel 6 – init 6 – Used for Reboot

This runlevel concept is usually used in all Linux machines as well as Unix machines .

In linux the file /etc/inittab stores the default runlevelin the line


We can change our runlevel as our need in the above line but 0 and 6 should not be mentioned as default runlevel .


About Divyashree - The GNULINUX Guy

I am a Linux and Opensource enthusiast. I started working on Linux early in 2007 while I was doing my Masters in Computer Science and passed out in 2010. Currently working as a DevOps Developer in in Public/Private cloud domain. my @github : my @nagiosexchange : my @linkedin :☁-a9415615
This entry was posted in TUTORIALS. Bookmark the permalink.

One Response to Create UR Own Runlevel In *nix System – Part 1

  1. anuja says:

    we are changing runlevels or creating ?
    i didn’t find how to create or modify

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s