- 博客(5)
- 收藏
- 关注
原创 数字1转换成0001
n=1while [ $n -le 100 ]do num=`printf "%04d\n" $n` echo "$num" >> jj.txt echo "print any text here" >> jj.txt echo -e "$num"'\tprint any text here\n\n' &...
2019-03-28 23:46:01
1119
原创 远程开机
#! /bin/bashecho ''echo -e "\033[1;31m正在远程开机 192.168.31.106...\033[0m"wakeonlan 74:d4:35:99:3e:48 > /dev/null 2>&1wakeonlan 74:d4:35:99:3e:48 > /dev/null 2>&1time1=`date +"%Y...
2019-03-26 17:10:57
432
原创 办公室摸鱼看小说专用
#! /bin/bashn_all=`awk '{print NR}' $1 | tail -n 1`txt_name=$1trap 'onCtrlC' INTfunction onCtrlC () { echo '' echo -e "\033[1;31m当前阅读到第$n行\033[0m" echo "$txt_name,$n,`date +...
2019-03-26 15:45:38
6558
原创 监测断电
#! /bin/bashn=0while truedo ping 183.1.0.113 -c 1 -W 1 > /dev/null 2>&1 if [ $? -ne 0 ]; then echo "访问不通" if [ "$n" -gt 4 ];then ...
2019-03-25 18:07:11
230
原创 linux 心得
1、在卸载libpcap时,使用了-y 参数,导致很多关联的软件也一起被删除了,比如L2TP和PPTP、PPP,yum在删除时,会把一些配置文件备份下来(卸载日志中会有记录),下次安装时,直接将备份文件恢复即可。但是最好不要将关联软件删除,应该可以选择删除的,这个在以后验证一下;2、yum有时不能使用,提示有另外的app正在使用中,要等待一段时间。劳资哪有时间等你,直接用rm -f /v...
2019-03-25 16:44:43
866
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人