shutdown -h now 关机;
shutdown -r now 或 reboot 重启;
cat: 查看文件内容;
tar -zxvf: 解压缩;
find:查找文件;
mv:移动文件或目录、文件或目录改名;
例:
1、将目录A重命名为B
mv A B
2、将/a目录移动到/b下,并重命名为c
mv /a /b/c
服务相关操作:其中*代表服务名称。
systemctl reload *.service #重新加载服务配置文件
然后就可以启动服务了,
systemctl start *.service即可
设置开机启动: systemctl enable *.service
systemctl常见命令:
systemctl is-enabled *.service #查询服务是否开机启动
systemctl enable *.service #开机运行服务
systemctl disable *.service #取消开机运行
systemctl start *.service #启动服务
systemctl stop *.service #停止服务
systemctl restart *.service #重启服务
systemctl reload *.service #重新加载服务配置文件
systemctl status *.service #查询服务运行状态
systemctl --failed #显示启动失败的服务