Liunx常用命令行(Ubuntu)

关闭防火墙的命令行:

1. 永久性生效

开启:chkconfig iptables on

关闭:chkconfig iptables off

2. 即时生效,重启后失效

开启:service iptables start

关闭:service iptables stop

3.查看防火墙状态:

chkconfig --list  | grep iptables

1.下载net-tools(ubunte 一开始安装是没有ifconfig命令的需要安装)

sudo apt-get install net-tools

2.终端输入命令

ifconfig
原文地址:https://www.cnblogs.com/x-ll123/p/9457989.html