Centos

cmd命令

①services iptables status 查看 iptables的状态 

   :unrecognized service 表示尚未安装

②find -name iptables  查找iptables 文件

③firewall-cmd --state 查看firewall状态

④reboot 重启   reboot -r now 立刻重启

⑤halt 关机   poweroff立刻关机

⑥:q! 强制不保存退出 

  :wq! 强制保存退出

⑦编辑网络配置

   cd /etc/sysconfig/network-scripts/ 

   ls 查找目录下的所有文件

   vi 编辑

   services network restart 重启网络
⑧tar -zxvf xxx.tar.gz 解压

    分别是四个参数 x : 从 tar 包中把文件提取出来

                         z : 表示 tar 包是被 gzip 压缩过的,所以解压时需要用 gunzip 解压

                         v : 显示详细信息

                         f xxx.tar.gz : 指定被处理的文件    是 xxx.tar.gz

⑨source /etc/profile 编译文件

原文地址:https://www.cnblogs.com/jiningning/p/5849707.html