Home > linux > How To: Change run levels in Linux

How To: Change run levels in Linux

So you’re logged into your Linux server on console and have downloaded some patches and need to get to single user mode?  How do you do it without going through the trouble of rebooting again and selecting run level from startup options?

By default, Linux boot in run level 5 so if you want to get into a different run level such as single user-mode, just type:

$ sudo init 1

That’s it.  Do what you need to do at single user mode and then to get back to default run level, type:

$ sudo init 5

That’s it.

Say, you need to reboot anyway.  To quickly do a reboot, type:

$ sudo init 6

And we’re done here.

Categories: linux Tags: