One day learning about Linux Login system, shutdown, and remote connection

Source: Internet
Author: User

Many of my friends log on to Linux for the first time? There are still a lot of interesting things to log in with graphical interfaces, but if you want to log in with a text interface, you really don't know what to do! (I didn't know how to shut down, cup !) To help you better understand how to use Linux correctly and properly log on to and shut down the system, here is a brief introduction.

Login System

Start

Select User

Enter System

In fact, the Linux Desktop is similar to the Windows system, but it does not have powerful desktop functions. More content is coming to you, and the effects of different Linux desktop environments are also different. You can study it on your own. If your Linux system is used for servers, we strongly recommend that you do not install the desktop environment.

Logout and Shutdown

Command Line
What we see most is operating the Linux System in text. How can we switch to the command line mode in the desktop environment?
There are two methods to work in the command line.
The first is to open our terminal in the application-system tool-terminal to perform operations under the command line.

Second, use command combinations
In Linux, six Terminal statements are provided for users to log on. The switchover mode is Ctrl + Alt + [F1 ~ F6] combination button, these 6 are the interface of the text interface, if you want to switch to the X interface, then use: Ctrl + Alt + F7
Tip: if you are using a Linux system installed on a virtual machine or a Linux system installed on another virtual machine software, the above combination may not work, because some shortcut keys may conflict, it is normal on the real machine.
If I first log on to the desktop environment and switch to the text interface, isn't it a waste of resources? Is there a way to directly access the text interface at startup? This is required (haha )!
Then we can modify
/Etc/inittab file to implement
[Root @ yufei ~] # Vi/etc/inittab
Specific modification content
Find
Id: 5: init default:
Change 5 to 3
Then, restart and enter the text interface.

Graphic Interface for text Switching

 

Through the above introduction, we have learned that there are two methods to log on to the Linux system: plain text and graphical interfaces. In the plain text interface environment, tty1 ~ Tty6 has six terminal interfaces, but there is no graphical interface environment. We cannot open the graphic interface by pressing Ctrl + Alt + F7. Only by starting the desktop environment, use the following command
[Root @ yufei ~] # Startx
However, to start the graphic interface, you must have installed the X Window system and the X server can be enabled smoothly. Otherwise, you still cannot access your desktop system!

Exit the system under the command line

 

This is the same as that of the desktop system. Let's take a look at the logout command. The command is as follows:
[Yufei @ yufei ~] # Exit
At this time, the user has left the system.
If you want to shut down, use
[Root @ yufei root] $ shutdown-h now
Note: As long as you run the preceding command on the command line, the root user can only issue this command to shut down the system. Generally, the user does not have this permission. However, in a desktop environment, common users can directly shut down the system on the toolbar.

Introduction to tools for remote connection to Linux Hosts

 

Most of the time, we do not directly need to operate the Linux system on the local machine, but manage it through a remote connection tool. The following is a brief introduction.
They mainly include Putty, Xshell, SecureCRT, and so on. These are all SSH client software on Windows. I will not talk much about downloading and installing them. Everyone has their own preferences, it depends on myself. Now I use Xshell, so I will take it as an example to explain how to connect remotely.
Open Software

Click NEW to enter the NEW dialog box and configure the corresponding information.

Configure the user name and password

Set the UI color

The new dialog box is set.

Log on to a remote Linux System

If you have any questions, leave a message.

From: yufei blog

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.