一、入门命令
ls # 浏览目录
cat # 查看文本内容
cd # 切换目录(即:进入目录)
vi # 文本编辑器(加强版:vim)
ip addr # 查看网络地址(简练:ip a)
二、systemctl
- systemctl 操作 操作哪个服务
systemctl start network # 开启
systemctl stop network # 停止 网络服务
systemctl status network # 查看 网络服务的状态
systemctl restart network # 重启网络服务,等同于 stop and start
- sshd ssh远程的服务端;客户端:ssh命令行工具,Xshell,FinalShell,WindTerm
systemctl disable sshd # 开机自动不启动
systemctl enable sshd # 开机自动启动
- chronyd 时间服务:同步阿里云的时间服务器
systemctl status chronyd
date # 查看系统当前时间