2018年12月19日

摘要: 1.查看是否安装防火墙 rpm -qa | grep iptables 2.查看防火墙的状态 service iptables status 3.开启防火墙 service iptables start 4.关闭防火墙 service iptables stop chkconfig iptables 阅读全文
posted @ 2018-12-19 16:01 小小的树叶绿色的篱笆 阅读(167) 评论(0) 推荐(0)

2018年6月27日

摘要: 1.仅仅if与for //for循环是某范围内的循环 #!/bin/bashfor ip in `cat ip.txt`doping -c 3 -i 0.2 -w3 $ipif [ $? -eq 0 ]thenecho "haha $ip is life"elseecho "haha $ ip is 阅读全文
posted @ 2018-06-27 21:06 小小的树叶绿色的篱笆 阅读(90) 评论(0) 推荐(0)
 
摘要: 文件操作 重定向与管道 ls >a.txt 将ls打印到屏幕的内容输出到a.txt里、覆盖 ls>>a.txt 将ls打印到屏幕的内容输出到a.txt里、追加 ls dd 2>b.txt (没有dd目录) 将ls打印到屏幕的内容输出到a.txt里、覆盖 ls dd 2>>b.txt (没有dd目录) 阅读全文
posted @ 2018-06-27 09:35 小小的树叶绿色的篱笆 阅读(148) 评论(0) 推荐(0)

2018年6月26日

摘要: liunx : 仅代表系统的内核 linux 系统 :基于liunx内核而产生的操作系统(内核+程序) 注意:安卓等也是基于liunx内核 阅读全文
posted @ 2018-06-26 16:03 小小的树叶绿色的篱笆 阅读(354) 评论(0) 推荐(0)