How to Change Runlevels (targets) in SystemD

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Aaron Kili

Aaron Kili is a Linux and F.O.S.S enthusiast, an upcoming Linux SysAdmin, web developer, and currently a content creator for TecMint who loves working with computers and strongly believes in sharing knowledge.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

10 Responses

  1. Tim Kissane says:

    Thanks for the clear, concise explanation. It is needed and appreciated. However, I’m looking for a way to find the current target, not necessarily the same thing as the default target.

    I’m writing a script using the runlevel man page as a guide. Some bright soul pointed out `who -r` gives the current run level (but not target). There should be an easier way (like get.target or similar).

    Have I missed something? TIA.

  2. Sam MM says:

    Thanks for the great details. It is really helpful.

  3. Pedro Bezunartea López says:

    Just what I needed: changing the runlevel using SystemD without rebooting, thank you!

  4. linuxdood says:

    Nice article and helpful info since I did need to know this.

    Unfortunately I needed to look up something this simple as systemd is change for change sake and is unnecessarily over complicated.

    There was nothing wrong with # init 3

  5. Eric says:

    Thanks. This is well written. I had read another source that did not mention the graphical target so I ended up without a GUI for a while :)

  6. fred smith says:

    probably a typo: runlevel1.target cannot be a link to both poweroff.target and rescue.target

    • Aaron Kili says:

      @Fred

      Ooops, that’s correct. We will update the article soon; it is supposed to read:
      “Run level 0 is matched by poweroff.target (and runlevel0.target is a symbolic link to poweroff.target)”

Got something to say? Join the discussion.

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.