TDL: 十分钟讲完 60 个你需要的 Linux 命令,60 Linux Commands you NEED to know GPT
small_Medium syposis on 60 Linux commands
I) webpage address/route/path
II) text content & exception
Here are the top 60 Linux commands you need to know, and we’re gonna do this in minutes. Our first command can be used anywhere.
2.1) command 1 : ssh
It is SSH because you can’t use Linux unless you can get to it. To connect to your Linux machine, you’ll specify your user it (指定您的用户). Then the ad (@) symbol and then the server you’re gonna connect to.
So I 'll copy the IP address of my linnode that I just set up, paste that in here. (复制刚刚设置的Lin节点的IP地址,然后粘贴)
Hit enter. Accept all fingerprinits. (按Enter,接受所有指纹)
Put your password in and or in the
2.2)ls
- LS command will list all the files in your current working directory. (LS命令列出当前工作目录中的所有文件)
- We can add the L switch to give us a nice list and we can add the A switch to
添加**ls -L (ie, ll )**选项获得一个漂亮的列表,添加-A(ls -al)选项来查看隐藏的文件,
[root@iZ2vc5lqzt23aweti4j777Z ~]# ls -l
total 168
drwxr-xr-x 2 root root 4096 Dec 19 19:52 Folder_Dec19th2023
drwxr-xr-x 3 root root 4096 Jan 7 21:54 Folder_Dec21th2023_test1
drwxr-xr-x 2 root root 4096 Dec 30 08:41 Folder_Dec30th2023_a
-rw-r--r-- 1 root root 25548 Apr 7 2017 mysql57-community-release-el7-10.noarch.rpm
-rw-r--r-- 1 root root 25548 Apr 7 2017 mysql57-community-release-el7-10.noarch.rpm.1
-rw-r--r-- 1 root root 25548 Apr 7 2017 mysql57-community-release-el7-10.noarch.rpm.2
-rw-r--r-- 1 root root 25548 Apr 7 2017 mysql57-community-release-el7-10.noarch.rpm.3
-rw-r--r-- 1 root root 25548 Apr 7 2017 mysql57-community-release-el7-10.noarch.rpm.4
drwxr-xr-x 11 root root 4096 Dec 21 14:23 PbootCMS
drwxr-xr-x 3 root root 4096 Jan 3 15:21 src
drwxr-xr-x 2 root root 4096 Jan 9 20:21 test_a_Jan9th2023
-rw-r--r-- 1 root root 1292 Dec 25 17:13 'udo systemctl start mysqld.service'
[root@iZ2vc5lqzt23aweti4j777Z ~]# ll
total 168
drwxr-xr-x 2 root root 4096 Dec 19 19:52 Folder_Dec19th2023
drwxr-xr-x 3 root root 4096 Jan 7 21:54 Folder_Dec21th2023_test1
drwxr-xr-x 2 root root 4096 Dec 30 08:41 Folder_Dec30th2023_a
-rw-r--r-- 1 root root 25548 Apr 7 2017 mysql57-community-release-el7-10.noarch.rpm
-rw-r--r-- 1 root root 25548 Apr 7 2017 mysql57-community-release-el7-10.noarch.rpm.1
-rw-r--r-- 1 root root 25548 Apr 7 2017 mysql57-community-release-el7-10.noarch.rpm.2
-rw-r--r-- 1 root root 25548 Apr 7 2017 mysql57-community-release-el7-10.noarch.rpm.3
-rw-r--r-- 1 root root 25548 Apr 7 2017 mysql57-community-release-el7-10.noarch.rpm.4
drwxr-xr-x 11 root root 4096 Dec 21 14:23 PbootCMS
drwxr-xr-x 3 root root 4096 Jan 3 15:21 src
drwxr-xr-x 2 root root 4096 Jan 9 20:21 test_a_Jan9th2023
-rw-r--r-- 1 root root 1292 Dec 25 17:13 'udo systemctl start mysqld.service'
[root@iZ2vc5lqzt23aweti4j777Z ~]# ls -al
total 296
dr-xr-x---. 11 root root 4096 Jan 10 20:36 .
dr-xr-xr-x. 18 root root 4096 Dec 19 10:22 ..
-rw------- 1 root root 31545 Jan 10 20:36 .bash_history
-rw-r--r--. 1 root root 18 May 18 2020 .bash_logout
-rw-r--r--. 1 root root 176 May 18 2020 .bash_profile
-rw-r--r--. 1 root root 176 May 18 2020 .bashrc
drwx------ 3 root root 4096 Oct 11 11:49 .config
-rw-r--r--. 1 root root 100 May 18 2020 .cshrc
drwxr-xr-x 2 root root 4096 Dec 19 19:52 Folder_Dec19th2023
```