head -1 /etc/pass.txt 查看前1行的命令
tail -1 tes.txt 显示后一行的命令
tail -f 1.txt 实时滚动的日志
systemctl 管理服务程序的运行状态
systemctl start 服务名称 启动
systemctl stop 服务名称 停止
systemctl restart 服务名称 重启
systemctl status 服务名称 查看服务详情 运行状态
systemctl disable 服务名称 开机不运行
systemctl enable 服务名称 开机运行
systemctl is-active 服务名称 检查确认服务是否运行
systemctl is-enabled 服务名称 检查开机是否运行
firewalld --防火墙服务



