runlevel command and its examples

The runlevel command is a Unix-based command line utility that displays the current run level of the server. Run levels are like a mode of operation that the system can be in, and they determine which jobs and daemons should run at any given time.

Unix-based systems have generally seven run levels, numbered 0 to 6. Each has a different set of services and jobs running, defined for a different mode of operations.

  • About runlevel: To output previous and current runlevel
  • Comes From: upstart-0.6.5
  • Configuration Files:
  • Path: /sbin/runlevel

Examples:

1. To see the current runlevel

# runlevel

2. To suppress the output

# runlevel -q
# runlevel –quiet

3. To run in verbose mode

# runlevel -v
# runlevel –verbose

4. To get the version info

# runlevel –version

5. To get the help

# runlevel –help

Related Commands: runlevel, init, telinit, shutdown, who

Leave a Reply

Your email address will not be published. Required fields are marked *