How does a Linux machine enter the command interface by default
This article mainly introduces how the Linux machine enters the command interface by default. It is very detailed and has certain reference value. Friends who are interested must finish reading it.
The default way for a root machine to enter the command interface is as follows: first, the root user enters the system and the code [vi / etc/inittab] edits the file; then press I to switch to INSERT mode; then press ESC key to exit INSERT mode; finally, enter wq to save and exit.
By default, the Linux machine enters the command interface:
1. Root users enter the system and use vi to edit inittab files under the command interface.
Vi / etc/inittab-Editing the / etc/inittab file with the vi editor
2. Press I-- to switch to INSERT mode, that is, to modify the mode
3. Find the line init:5:initdefault in the file and change 5 to 3
What do 5 and 3 stand for, respectively?
4. Press the Esc key to exit INSERT mode
5. Press: (colon)-- lock the cursor to the last line
6. Wq (save and exit)
These are all the contents of the article "how to enter the command interface by default on a Linux machine". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!