1/5/2023 0 Comments Linux reboot command![]() During the startup you will be prompted to confirm the startup of each service. The process to perform an interactive startup is similar to that for single user mode, except you add the word " confirm" to the line, rather than " 1" for single user mode. You can now reboot, or use " init 5" to switch to run level 5. Passwd: all authentication tokens updated successfully. If you need to change the root password, issue the passwd command. The server will now boot into single user mode. Press the "b" key to boot using the amended boot options. " line and press the "e" key to edit it.Īdd " 1" onto the end of the line, then press the return/enter key to return to the previous screen with the amended values. Use the arrow keys to move the highlight down to the "kernel. This sounds quite dangerous, but single user mode requires you to have direct console access, so provided the physical security of your data centre is good it shouldn't be a problem.īoot the server and press a key at the "Press any key to enter the menu" option.Īt the GRUB screen, press the "e" key to edit the boot parameters. This is very useful if you've forgotten, or don't know, the root password and need root access. Single user mode is important because it gives you root access without needing the root password. The following entry would make the system boot into run level 3. To make the system automatically boot into a different run level, simply change this default in the "/etc/inittab" file. ![]() The telinit command will do the same thing.įor systems with X and a window manager (typically GNOME) installed, the default run level is usually 5, as shown in the "/etc/inittab" file. The init command is used to switch between run levels if you are already logged into the system. You can display your previous and current run level using the runlevel command. # 6 - reboot (Do NOT set initdefault to this) ![]() # 2 - Multiuser, without NFS (The same as 3, if you do not have networking) # 0 - halt (Do NOT set initdefault to this) The "/etc/inittab" contains an explanation of the run levels (0-6). The run level determines the mode of operation of the server. Remember, the exams are hands-on, so it doesn't matter which method you use to achieve the result, so long as the end product is correct. This article covers basic Linux run levels and boot, reboot and shutdown operations, with specific reference to the information needed for the RHCSA EX200 and RHCE EX300 certification exams. Home » Articles » Linux » Here Linux Run Levels, Boot, Reboot, Shutdown ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |