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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • 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. How to configure Linux Resource Groups (cgroups) for MySQL
  2. pgrep: command not found
  3. Active FTP vs. Passive FTP
  4. grub-script-check: command not found
  5. systemctl Command Examples in Linux
  6. Why Does a Lun World Wide ID Starts with the Number 3 in Linux dm-multipath
  7. How to Configure Network Teaming in CentOS/RHEL 7
  8. “userdel: user xxx is currently used by process yyy” – Unable to delete an User
  9. How to Test Port [TCP/UDP] Connectivity from a Linux Server
  10. How to Verify the Syntax of the file /etc/ssh/sshd_config

You May Also Like

Primary Sidebar

Recent Posts

  • nixos-rebuild Command Examples in Linux
  • nixos-option: Command Examples in Linux
  • nixos-container : Command Examples in Linux
  • nitrogen Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright