首页 > 系统服务 > 详细

linux常用命令

时间:2021-07-15 17:32:31      阅读:20      评论:0      收藏:0      [点我收藏+]

系统信息 
arch 显示机器的处理器架构
uname -m 显示机器的处理器架构
uname -r 显示正在使用的内核版本 

关机 (系统的关机、重启以及登出 ) 
shutdown -h now 关闭系统
init 0 关闭系统
telinit 0 关闭系统
shutdown -h hours:minutes & 按预定时间关闭系统 
shutdown -c 取消按预定时间关闭系统 
shutdown -r now 重启
reboot 重启

开启关闭防火墙

永久性生效

开启:chkconfig iptables on

关闭:chkconfig iptables off

即时生效,重启后失效

开启:service iptables start

关闭:service iptables stop

查看运行的服务

若服务很多,建议使用文件查看命令,如 lessmore 等,以便得到清晰的结果。

  1. # service --status-all
  2. # service --status-all | more
  3. # service --status-all | less

linux常用命令

原文:https://www.cnblogs.com/h117/p/15015353.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!