Linux常用系统类命令

date:查看系统日期

          

ifconfig:查看网卡信息

ping [-c 次数]:查看网络是否能连通

        

sudo reboot:用管理员身份重启机器

shutdown:关机

        shutdown -h now:现在关机

        shutdown -h +10:10分钟后关机

        shutdown -h 20:12 :20:12时关机

        shutdown -c:取消关机

systemctl:

        systemctl status 服务名:查看服务

        systemctl start 服务名:启动某项服务

        systemctl stop 服务名:关闭某项服务

        systemctl restart 服务名:重启某项服务

        举例:查看防火墙运行状态systemctl status firewalld.service

Guess you like

Origin blog.csdn.net/chengdiyiyo/article/details/121373260