点击蓝字
关注我们
,我就有了两台Linux主机。
说实话,作为个人系统的话,我更推荐带有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 ~]$ dateWed Jan 20 22:58:47 CST 2021[tom@csbebetter ~]$ date "+%Y-%m-%d %H:%M:%S"2021-01-20 23:00:12
[tom@csbebetter ~]$ calJanuary 2021Su Mo Tu We Th Fr Sa1 23 4 5 6 7 8 910 11 12 13 14 15 1617 18 19 20 21 22 2324 25 26 27 28 29 3031
[tom@csbebetter ~]$ pidof sshd12750 12748 12711 12709 977
ifconfig命令:获取网卡配置与网络状态信息(为了安全起见更改了一些字段
)
[tom@csbebetter ~]$ ifconfigeth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500inet 162.17.249.167 netmask 255.255.255.0 broadcast 162.17.249.255inet6 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 0TX packets 17496 bytes 2647368 (2.5 MiB)TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536inet 127.0.0.1 netmask 255.0.0.0inet6 ::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 0TX packets 0 bytes 0 (0.0 B)TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
uname命令:查看系统内核及系统版本等信息
[tom@csbebetter ~]$ uname -aLinux 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 ~]$ uptime23:20:40 up 3:14, 4 users, load average: 0.00, 0.01, 0.05
[tom@csbebetter ~]$ freetotal used free shared buff/cache availableMem: 1882016 165120 1157040 572 559856 1564100Swap: 0 0 0[tom@csbebetter ~]$ free -htotal used free shared buff/cache availableMem: 1.8G 161M 1.1G 572K 546M 1.5GSwap: 0B 0B 0B
[tom@csbebetter ~]$ whoroot tty1 2021-01-20 20:10tom 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进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




