• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

CentOS / RHEL 6 : How do I find my current runlevel?

by admin

The output of the runlevel command will indicate your previous and current runlevel separated by a single space. If there was no previous runlevel ‘N‘ will be used as a placeholder.

For example:

# runlevel
N 5

The output above indicates that the current runlevel is 5 and there was no previous runlevel.

Changing current runlevel

To change the runlevel for a system without rebooting or changing the /etc/inittab file, execute the following command as the root user:

# telinit [runlevel_value]

With [runlevel_value] having the following values:

0 — Halt
1 — Single-user mode
2 — Not used (user-definable)
3 — Full multi-user mode
4 — Not used (user-definable)
5 — Full multi-user mode (with an X-based login screen)
6 — Reboot

Filed Under: Linux

Some more articles you might also be interested in …

  1. links Command Examples in Linux
  2. How To Change Pacemaker Cluster Heartbeat Timeout In CentOS/RHEL 7
  3. How to Disable IPv6 on Ubuntu 22.04 LTS Jammy Jellyfish
  4. CentOS / RHEL 6 : How to force a NTP sync with the NTP server(s)
  5. How to check failed or bad login attempts in Linux
  6. doctum: A PHP API documentation generator
  7. smbclient Command Examples in Linux
  8. nft Command Examples in Linux
  9. fmt Command Examples in Linux
  10. knife Command Examples

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright