Home  >  Article  >  Operation and Maintenance  >  How to enter the command interface by default on a Linux machine

How to enter the command interface by default on a Linux machine

coldplay.xixi
coldplay.xixiOriginal
2021-01-07 15:49:577356browse

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.

How to enter the command interface by default on a Linux machine

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

How to enter the command interface by default on a Linux machine

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

How to enter the command interface by default on a Linux machine

4. Press the Esc key --Exit the INSERT mode

How to enter the command interface by default on a Linux machine

5. Press: (colon) --the cursor is locked to the last line

How to enter the command interface by default on a Linux machine

##6. wq (save and exit)

How to enter the command interface by default on a Linux machine

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn