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 realize mode switching and user login in Linux

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

Share

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

This article introduces the knowledge of "how to achieve mode switching and user login in Linux". In the operation of actual cases, many people will encounter such a dilemma, 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!

Switching between X Window and Command Line Mode

[Ctrl] + [Alt] + [F1] ~ [F6]: log in to tty1~tty6 via text interface

[Ctrl] + [Alt] + [F7]: graphical interface desktop

Note: if you start Linux in a plain text environment, [Ctrl] + [Alt] + [F7] will not display any interface, you can enter the following command in the text interface:

Because I have started the graphical interface, I will return an error that the service has been started.

User login

Administrator login:

Administrator account name used when logging in: root

Administrator account password: (no characters will be displayed, it looks like the keyboard is broken)

Note the command:

The code is as follows:

Root@ubuntu:~#

Root represents the administrator account, ubuntu hostname, ~ refers to the current directory, and # is the prompt. (the default root prompt is #, and the average user is $)

The symbol "~" represents the user's home folder, such as root's main folder in / root. View all the files in the current directory as follows:

Compared with the administrator, the following is the login of the general user:

Note:

The code is as follows:

Gin@ubuntu:~$

Gin stands for ordinary account, ubuntu hostname, ~ refers to the current directory, and $is the prompt.

View the files in the current directory:

Note: there are generally two accounts, one is the root account, which is used to modify the system, and the other is the ordinary account, which is used to use the system.

Several commonly used hotkeys

[Tab] key

Function: command completion, file completion

When [Tab] is followed by the first command of a series of commands, complete the function for the command.

When [Tab] is followed by the first command of a series of commands, complete the function for the file.

As follows, enter [Tab] [Tab] successively after ca, and all commands starting with ca will be displayed.

Enter [Tab] [Tab] successively after ls-al ~ / .bash, and all files starting with bash in the current directory will be displayed.

[Ctrl] + [c]

Function: interrupt the current program

[Ctri] + [d]

Function: equivalent to exit command

"how to achieve mode switching in Linux and user 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