Systemd runlevels

Written by Robert -

Most Linux users know about runlevels. I've written about those before. If you require to use systemd, you can still use runlevels. Luckily it's easy to understand:

List of runlevels

| run level | systemd target |

| 0 | |

| 1 | |

| 3 | |

| 5 | |

| 6 | |

| emergency | |

Current runlevel

You can find out the current runlevel by using the following command:

systemctl get-default

Changing the runlevel

First let's focus on temporary changes. We can change the current runlevel by using the isolate option. Let's make an example. Here To change a runlevel, for example to the commonly used runlevel 3, you can use systemctl:

systemctl isolate

This can also be used to poweroff the computer:

systemctl isolate

To change this permanently, you need to change the link of to the new target. Here I'm going to change it to runlevel 3 or

ln -sf /usr/lib/systemd/system/ /etc/systemd/system/

That's how you change it.