Contents
| Runlevel 0 | shuts down the system |
|---|---|
| Runlevel 1 | single-user mode |
| Runlevel 2 | multi-user mode without networking |
| Runlevel 3 | multi-user mode with networking |
| Runlevel 4 | user-definable |
How do I set the default runlevel in Linux?
How to change the default runlevel in Linux
- Step 1: Login as root user from the command line. If you’re on GUI mode press Ctrl+Alt+[F1 to F6] to open a command line terminal enter your credentials. …
- Step 2: Take a backup of the inittab file. …
- Step 3: Edit the /etc/inittab file in a text editor.
In which runlevel Linux system reboots?
By default, shutdown switches to runlevel 1 (single-user mode). You may specify the -h option to halt the system, or the -r option to reboot. A standard message is issued in addition to any message you specify.