A runlevel is a number which indicates what "mode" you want to computer to boot into. For example, runlevel 5 is graphical mode, where runlevel 3 is text-only mode. Runlevel 1 is "single-user" mode, used for troubleshooting problems.
There are three ways to change your runlevel:
There are three ways to change your runlevel:
- While the Computer is Running: You will then be switched into the new runlevel.
- Permanently Set a Default Runlevel:
- Open a Terminal.
- Become root: su -
- Open the file /etc/inittab in your favorite text editor: gedit /etc/inittab
- Find the line: id:number:initdefault:where number is your current default runlevel (probably 5).
- Change the number in the middle of the line to the new runlevel that you want your computer to start in by default. For example, if you want to start in text-only mode by default, change it to: id:3:initdefault:
Single user mode is a mode in which a multiuser computer operating system boots into a single superuser. It is mainly used for maintenance of multi-user environments such as network servers. Some tasks may require exclusive access to shared resources, for example running fsck on a network share.
runlevel --h
runlevel [OPTIONS...]
Prints the previous and current runlevel of the init system.
runlevel [OPTIONS...]
Prints the previous and current runlevel of the init system.
Aucun commentaire:
Enregistrer un commentaire