Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to log in using the linux command line

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the relevant knowledge of "how to use the linux command line to log in". Many people will encounter such a dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Here is how to log in on the linux command line.

By default, REDHAT Linux 9.0 automatically launches X-Window to enter the graphical interface when it starts. And many diehard Linux players are used to working in the Console character interface, or some players think that X-Window starts too slowly and prefer intuitive and fast Console operations.

1.linux command line login: enter the character interface

In order to go directly to the Console interface when logging in on the linux command line, we can edit the / etc/inittab file. Find the id:5:initdefault: line, change it to id:3:initdefault:, and restart the system. We can see that simply changing 5 to 3 can realize the transition to the X-Window graphical operating interface or Console character interface at startup. This is because the Linux operating system has six different operating levels (run level). Under different operating levels, the system has different states, which are:

0: stop (remember not to set initdefault to 0, as this will prevent Linux from starting)

1: single-user mode, just like the security mode under Win9X.

2: multi-user, but no NFS.

3: full multi-user mode, standard run level.

4: generally not, you can use it to do something in some special cases.

5:X11, that is, into the X-Window system.

6: restart (remember not to set initdefault to 6, as this will cause Linux to restart again and again).

Runlevel 3 is the standard Console character interface mode we want to enter.

"how to use the linux command line login" content is introduced here, thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report