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

coldplay.xixi
Release: 2022-12-30 11:11:21
Original
7270 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!