Kurinchi Blogger Scribbles …


Posts Tagged ‘Run Level’

Jul 25
2009

Linux: How to find the current Run Level?

Last updated: July 25th, 2009

Default init level is set in /etc/inittab.

$ cat /etc/inittab (to display the init levels)

Inside that file, you can note a line which will state the run level number like
id:5:initdefault: (indicating run level 5 which means that the system is running with x windows)

To find the current run level you can execute the following commands

$ who -r
run-level 5 2008-07-22 21:35 last=5
which indicates that the system is in run-level 5

Other option to find the run level is
$ /sbin/runlevel
N 5

To find out what sub processes are associated with each run level you can go to
$ cd /etc/rcN.d/ (Where N denotes the run level number)

For example
$ cd /etc/rc1.d/
$ ls -l

This will list symbolic links to various processes associated with run level 1.

Jul 23
2009

Linux: How many Run Levels are there and what are they?

Last updated: July 22nd, 2009

Linux systems have 7 Run Levels and they are as follows.

0 – system halt
1 – single user mode (system maintenance mode)
2 – multiuser mode without network access
3 – full multiuser mode with network access
4 – not used
5 – multiuser mode with X windows
6 – reboot or restart

Each run level in linux has a very specific purpose.

Run level 1 is also known as system maintenance mode and at this level the system prompt appears without root level password. It should be used only when it is absolutely necessary for system maintenance.

Run level 4 is not used and it can be used by the user to customize his own level.

Note: Solaris Run Level is different from Linux run levels.

Jul 22
2009

Linux: What is Run Level?

Last updated: July 22nd, 2009

Run Level is a term to indicate your computer’s state of operation. When your computer starts it initially starts the the first process called the init process. Init process in turn starts associated sub-processes for that state of operation.

Run Level is the state of the machine – indicating the processes and sub-processes that needs to be started in order for the Operating System to be in that state.


Valid HTML 4.01 Strict  Valid HTML 4.01 Strict