Linux operating system basics


1. Introduction to Linux background

LinuxIn fact, it is an operating system, and Windowsis in a "juxtaposed" relationship. In 2009, the first version was developed 1991by Finns ( ); compared with , its features : (1) You can view the source code; (2) It is based on the network; ( 3) The security is higher; (4) The hardware resources occupied by the system are smaller, and more resources are left for the program;Linus Benedict TorvaldsLinux
windowsLinux



2. Linux environment construction

(1) Construction method

If you want to learn Linux, you first need Linuxan environment. There are four main ways to build the environment. The characteristics are as follows:

  • (1) Use a virtual machine;

VMWareDue to the existence of some current virtual machine software (such as ) bug, it will cause various inexplicable problems in the environment, and it is inconvenient to use;

  • (2) Installed directly on the physical machine;

Because the Linuxdesktop is not friendly to use, it is not used;

  • (3) use WSL( Windows Subsystem for Linux);

This method is a new function developed in Windowsrecent years, and Windowsone is integrated in the system Linux, but this technology is not mature enough at present;

  • (4) Use cloud server;

This method is more convenient, you only need to buy a cloud server (Alibaba cloud, Tencent cloud any one), 此处使用该方式搭建环境;

Three steps to build an environment with a cloud server

  • (1) Purchase a cloud server;

Tencent Cloud Official Website

insert image description here
Just choose 1, you need to authenticate;

  • (2) Installation system

CentOS 7.6Select the version ( ) of the operating system (mirror) when purchasing 没有选择这个,想更换也可以重装系统;

After completion, you can view the ipaddress and reset the password. The default account name is rootDon't care;

insert image description here
Notice

  • When resetting the password, click Shut Down first and then reset!
  • The three information of account name, password and ipaddress Linuxare ;
  • (3) Remote connection and reuse

Connect through the client ( Xshell), the following describes the Xshellinstallation and use;

3. Terminal connection to Linux

(1) What is a terminal

Terminal software is a type of tool software that can establish a network connection with a remote host to perform some operations on the host. Common terminal software :
(1) XShell
(2) Putty
(3) MobaXTerm
(4) Iterm2
(5)SecureCRT

used hereXShell ;

(2) Install Terminal XShell

download link

  • Double click .exethe file to install

insert image description here
The following page appears, do not care;
insert image description here

(1) Click Next
insert image description here

(2) Click to accept the license agreement and the next step

insert image description here

(3) Modify the file installation location and click Next:

The location here is:E:\Program Files (x86)\NetSarang\Xshell 7

insert image description here

(4) Click to install:

insert image description here
Complete the installation:
insert image description here
the following page appears, indicating success:
insert image description here

(3) Use Xshell to log in to the host

Enter in XShellTerminal :

ssh 服务器外网ip地址

  • ipIt is the external network seen in the Tencent Cloud background pageip

Prompt to enter the user account password : After entering the correct password, you can log in successfully ( 账号root,密码:重置之后的密码)

The following page is displayed, indicating that the login is successful :
insert image description here

Notice: copy paste Xshellunder

Xshell 默认不支持复制、粘贴,更改如下所示

  • (1) Tools -> Options -> Keyboard and Mouse, as shown below :

insert image description here

  • (2) Step 1 has been completed above, in step 2, click Edit:
    insert image description here
    After entering Edit, select New :
    insert image description here

Enter the key combination: Ctrl+c, and press at the same time, another window will pop up, change as follows to complete the configuration :

insert image description here
Paste: Ctrl+valso the same configuration method,Then you can Xshellcopy and paste it in ~

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324223560&siteId=291194637