Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security, Veeam & DevOps

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form

How to check your current Runlevel in Linux

Posted on 27/10/202031/08/2026 Christian By Christian No Comments on How to check your current Runlevel in Linux
  1. Home
  2. Linux
  3. How to check your current Runlevel in Linux
Linux runlevel check

Runlevel is the operating system state on Linux system (it dictates the state that the machine is currently operating, and what applications or services can run at that time). Please see Delete or Rename and Create a Protected Organisation Unit in AD, how to retrieve deleted WhatsApp messages on iPhone, and What are the differences between MDT and WDS?

There are seven (7) run levels numbered from 0 to 6. A system can be booted into any of the given runlevel. Runlevels are identified by numbers.

Checking the Default Runlevels on Linux Systems

Furthermore, a system boots either to runlevel 3 or to runlevel 5. Runlevel 3 is CLI, and 5 is GUI. However, There are different commands that can show the current run level state on a server.

Who Command

who -r 
Determine current runlevel Linux
  • Systemctl Command
systemctl get-default
Check runlevel command

Using /etc/inittab File

Moreover, The default runlevel for a system is specified in the /etc/inittab file

cat /etc/inittab
Get current runlevel in Linux

Using /etc/systemd/system/default.target File

In addition, The default runlevel for a system is specified in the /etc/systemd/system/default.target file for systemd System.

Screenshot of a terminal displaying the content of a systemd configuration file located at /etc/systemd/system/default.target, with sections detailing unit descriptions, requirements, dependencies, and options for graphical interface management.

Nonetheless, The following details show what each of the default runlevels represent. These are the standard definitions which may be slightly different depending on your Linux distribution.

  • 0 – Set the runlevel to 0, and your machine halts.
  • 1 – Single-user Mode serves administrative tasks before launching non-essential services.
  • 2 – is the first multi-user mode runlevel and will start some non-essential services. This may, or may not contain networking depending on your Linux distribution.
  • 3 – is a multi-user mode which headless servers usually run at. All essential and non-essential services such as Apache HTTP Server should be running.
  • 4 – The default operating system does not use this multi-user mode runlevel; you can use it for user-defined purposes.
  • 5 – GUI desktops like Gnome or KDE load during this stage.
  • 6 – Runlevel 6 issues a reboot command, causing the operating system to restart.

I hope you found this blog post helpful. If you have any questions, please let me know in the comment session.

Thank you for reading this post. Kindly share it with others.

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
Linux

Post navigation

Previous Post: Adding a subnetwork interface to an existing network interface
Next Post: Fix MDT accidental OS deletion

Related Posts

  • Screenshot 2022 03 15 at 10.05.53
    VMware Workstation states: What are the differences between Suspend, Power Off, and Run in Background Linux
  • feature image
    How to Configure Advanced PAM in Linux Linux
  • image 129
    How to deploy Ansible AWX on centos 8 Linux
  • trip wire feature
    How to install and configure Tripwire on Ubuntu Linux
  • Screenshot 2022 02 25 at 02.06.20
    How to install SAMBA file shares for Servers and Clients Linux
  • Devolusion RDM update e1784558877194
    Action required: Update Devolutions Remote Desktop Manager Before July 21 Linux

More Related Articles

AADSTS900144 Fix AADSTS900144: The request body must contain the parameter Linux
zabbix Monitoring services using Zabbix Linux
Screenshot 2020 05 14 at 17.47.09 SSH access on Ubuntu server: Easy Guide Linux
Convert PEM to PPK 1 Convert a PEM Key to a PPK Key on a Linux and Windows AWS/Azure/OpenShift
Ubuntu on Windows Install Ubuntu 20.04 LTS on Windows via WSL Linux
sdfdghjk How to fix “Job for Mattermost service failed” error Linux

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

vexpert-badge-stars-5

Virtual Background

VEEAMLEGEND

Categories

Top 30 Sysadmin blog

veeaam100

Veeam Vanguard

  • kubernetes
    Create and monitor Apps using the Azure Kubernetes Service manifest AWS/Azure/OpenShift
  • Install Lets Encrypt Certificate on Windows with Certbot
    Install Lets Encrypt Certificate on Windows with Certbot Web Server
  • Fatory reset or reinatall windows server
    Reset or reinstall Windows Server without deleting the VM Windows Server
  • blog banner 1
    Reset and reinstall Windows from the cloud : Recover Windows when you cannot boot Windows
  • Windows OS type and version and build
    How to determine Windows Version or Edition and Build Windows
  • term “git” was not used as the name of a cmdlet, function, script file, or executable Program recognised
    The term “git” was not used as the name of a cmdlet, function, script file, or executable Program recognized Version Control System
  • disable automatic updates in Windows
    How to disable automatic Windows updates via Windows Settings Windows
  • screenshot 2020 03 13 at 20.24.17
    How to install Cygwin packages from the command line Windows Server

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,738 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Contact
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon
  • Bsky

Tags

Active Directory Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2026 TechDirectArchive

Loading Comments...

You must be logged in to post a comment.