Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » Linux » How to check your current Runlevel in Linux
  • Clickable icons Edge Browser
    Remove clickable icons from the Edge browser JIRA|Confluence|Apps
  • image 26
    Add an EBS volume to AWS EC2 via the AWS Console and CLI AWS/Azure/OpenShift
  • Hub Transport 1
    Hub Transport Server: Resolving ‘Failed to Reach Running Status’ Network | Monitoring
  • xxxxxx
    How to make a screenshot of Windows 10 Screen / Login Screen Windows
  • redirects3endpoint
    How to redirect requests for your bucket’s website endpoint to another bucket or domain AWS/Azure/OpenShift
  • Fix this file came from another computer and might be blocked error
    File Came From Another Computer And Might be Blocked Error Windows
  • S3 Bucket Replication
    Set up Cross-Region Replication for S3 Buckets AWS/Azure/OpenShift
  • Featured image 4
    Focus on Tasks: Limit Distraction & Get Things Done on Windows Windows

How to check your current Runlevel in Linux

Posted on 27/10/202006/09/2023 Christian By Christian No Comments on 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). 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.

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.

Rate this post

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

  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on Threads (Opens in new window) Threads
  • Click to share on Nextdoor (Opens in new window) Nextdoor
Linux

Post navigation

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

Related Posts

  • image 10
    Change Visual Studio Code UI language JIRA|Confluence|Apps
  • physical
    Linux Machine: Is it Virtual or a Physical server Linux
  • screenshot 2020 05 05 at 22.42.35
    How to run Windows applications on Linux via WineHQ Linux
  • openstack ola
    Openstack Deployment with Devstack Linux
  • teams feature
    How to install and configure Microsoft Teams on Ubuntu Linux
  • image 129
    Using Awx to deploy, schedule and run playbooks Linux

More Related Articles

image 10 Change Visual Studio Code UI language JIRA|Confluence|Apps
physical Linux Machine: Is it Virtual or a Physical server Linux
screenshot 2020 05 05 at 22.42.35 How to run Windows applications on Linux via WineHQ Linux
openstack ola Openstack Deployment with Devstack Linux
teams feature How to install and configure Microsoft Teams on Ubuntu Linux
image 129 Using Awx to deploy, schedule and run playbooks Linux

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a

  • Clickable icons Edge Browser
    Remove clickable icons from the Edge browser JIRA|Confluence|Apps
  • image 26
    Add an EBS volume to AWS EC2 via the AWS Console and CLI AWS/Azure/OpenShift
  • Hub Transport 1
    Hub Transport Server: Resolving ‘Failed to Reach Running Status’ Network | Monitoring
  • xxxxxx
    How to make a screenshot of Windows 10 Screen / Login Screen Windows
  • redirects3endpoint
    How to redirect requests for your bucket’s website endpoint to another bucket or domain AWS/Azure/OpenShift
  • Fix this file came from another computer and might be blocked error
    File Came From Another Computer And Might be Blocked Error Windows
  • S3 Bucket Replication
    Set up Cross-Region Replication for S3 Buckets AWS/Azure/OpenShift
  • Featured image 4
    Focus on Tasks: Limit Distraction & Get Things Done on Windows Windows

Subscribe to Blog via Email

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

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

Tags

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

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.