The default method for Linux machines to enter the command interface: first enter the system as the root user, edit the file with the code [vi /etc/inittab]; then press i to switch to INSERT mode; then press the Esc key to exit INSERT mode; finally Enter wq to save and exit.
The operating environment of this tutorial: linux7.3 system, DELL G3 computer.
Related learning recommendations:linux video tutorial
The default method of entering the command interface on a Linux machine:
1. Root user Enter the system and use vi to edit the inittab file in the command interface
vi /etc/inittab
--Use vi editor to edit the /etc/inittab file
2. Press i - switch to INSERT mode, which is the modification mode
3. Find the line init:5:initdefault in the file and change 5 to 3.
--Let's talk about what 5 and 3 represent respectively
4. Press the Esc key --Exit the INSERT mode
5. Press: (colon) --the cursor is locked to the last line
##6. wq (save and exit)The above is the detailed content of How to enter the command interface by default on a Linux machine. For more information, please follow other related articles on the PHP Chinese website!