点击蓝字
关注我们

说实话,作为个人系统的话,我更推荐带有KDE桌面环境的manjaro。因为既有好看的桌面又可以用yay -Ss解决很多软件安装问题。但练习使用Linux,那当然得白嫖那像红帽的Centos啦!
ssh 用户名@IP
复制
输入密码即可。 成功后我这里显示:Welcome to Alibaba Cloud Elastic Compute Service !
1. 执行帮助的命令man
我们以查看ls命令帮助为例(帮助文档太长,这里就不展示效果了)
man ls
复制
[tom@csbebetter ~]$ echo $SHELL
/bin/bash
复制
[tom@csbebetter ~]$ date
Wed Jan 20 22:58:47 CST 2021
[tom@csbebetter ~]$ date "+%Y-%m-%d %H:%M:%S"
2021-01-20 23:00:12
复制
[tom@csbebetter ~]$ cal
January 2021
Su Mo Tu We Th Fr Sa
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
复制
[tom@csbebetter ~]$ pidof sshd
12750 12748 12711 12709 977
复制
ifconfig命令:获取网卡配置与网络状态信息(为了安全起见更改了一些字段)
[tom@csbebetter ~]$ ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 162.17.249.167 netmask 255.255.255.0 broadcast 162.17.249.255
inet6 ff80::276:3eff:fe20:18d0 prefixlen 64 scopeid 0x20<link>
ether 00:16:3f:20:18:d0 txqueuelen 1000 (Ethernet)
RX packets 52837 bytes 57206615 (54.5 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 17496 bytes 2647368 (2.5 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
复制
uname命令:查看系统内核及系统版本等信息
[tom@csbebetter ~]$ uname -a
Linux csbebetter 3.10.0-1160.11.1.el7.x86_64 #1 SMP Fri Dec 18 16:34:56 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
复制
[tom@csbebetter ~]$ uptime
23:20:40 up 3:14, 4 users, load average: 0.00, 0.01, 0.05
复制
[tom@csbebetter ~]$ free
total used free shared buff/cache available
Mem: 1882016 165120 1157040 572 559856 1564100
Swap: 0 0 0
[tom@csbebetter ~]$ free -h
total used free shared buff/cache available
Mem: 1.8G 161M 1.1G 572K 546M 1.5G
Swap: 0B 0B 0B
复制
[tom@csbebetter ~]$ who
root tty1 2021-01-20 20:10
tom pts/0 2021-01-20 23:17 (括号中均为本机IP已省略)
tom pts/1 2021-01-20 22:26 ( )
tom pts/2 2021-01-20 22:52 ( )
复制
last命令:查看所以系统的登录记录
history命令:显示历史执行过的命令
clear命令:清空终端输出。
今天就到这里吧,剩下的命令讲解刚好可以接着水一篇文章。对了还有一件事,不要带着好奇心尝试删库!

扫码关注我们
微信号|赤子孤独
文章转载自赤子孤独,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。