Run-levels in Ubuntu 16.04 LTS

Switching between different run-levels (targets) in Ubuntu 16.04 LTS

Ubuntu 16.04 has moved from using init to systemd. Thus, the  concept of run-levels is replaced by the term targets.  The advantages over choosing systemd is discussed in the article The Story Behind ‘init’ and ‘systemd’: Why ‘init’ Needed to be Replaced with ‘systemd’ in Linux . The seven run-levels of init can be mapped with the targets as:

 

Run-levels Targets
0 poweroff.target
1 rescue.target
2,3,4 multi-user.target
5 graphical.target
6 reboot.target

To change the run-level non-GUI:

To set this runlevel as default for every time the system restarts

To check the current run-level

or

Similarly, one can set to any target by,

 

Leave a Reply

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