Shell脚本实现根据端口号kill相应进程功能
Linux根据占用的端口号来关闭相应的进程的shell脚本写法。
kill -9 $(lsof -i:22 |awk '{print $2}' | tail -n 2)
Shell中使用plink工具实现远程批量关机
我的操作系统是centos6.4操作系统:rhel6.2x86_64下载并安装putty软件包,本人下载了putty-0.62-1.el6.rf.x86_64.rpm下载地址如下:http://rpm.pbone.net/index.php31、远程主
Shell脚本获取国内各大运营商网段脚本分享
亚太地区网络信息记录在这里,每天都有更新。http://ftp.apnic.net/apnic/stats/apnic/delegated-apnic-latest下面这个脚本将对这段文本进行编辑,输出国内几大运营
Shell脚本查看网卡实时流量
#!/bin/bashwhile["1"]doeth=$1RXpre=$(cat/proc/net/dev|grep$eth|tr:""|awk'{print$2}')TXpre=$(cat/proc/net/dev|grep$eth|tr:""|awk'{print$10}')sleep1RXnext=$(cat/proc/net/dev|grep$eth|tr:""|awk'{print$2}
编辑:一起学习网
标签:脚本,操作系统,在这里,下载地址,网段