1、onclick="save();return false;" 取消“浏览器默认行为”。 比如一个链接 百度知道 当我们点击这个链接时,浏览器会自动跳转到:zhidao.baidu.com这个地址,这是浏览器的默认行为,如果我们这么做: 百度知道 那么再次点击这个链接时,浏览器则不会进...
分类:
编程语言 时间:
2014-07-16 23:17:04
阅读次数:
360
原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://kerry.blog.51cto.com/172631/557749#!/bin/bash# BY kerryhu# MAIL:king_819@163.com# BLOG:http...
分类:
Web程序 时间:
2014-07-10 13:36:31
阅读次数:
768
Hyper-V Over SMB3.0为Hyper-v宿主机和故障转移群集做防病毒排除微软SMB 3.0文件共享协议新特性介绍
分类:
其他好文 时间:
2014-07-10 12:22:31
阅读次数:
133
转载自:http://blog.chinaunix.net/xmlrpc.php?r=blog/article&uid=20543672&id=3020416生活在 Bash shell 中,熟记以下快捷键,将极大的提高你的命令行操作效率。编辑命令Ctrl + a :移到命令行首Ctrl + e :...
分类:
其他好文 时间:
2014-07-10 11:38:49
阅读次数:
235
Commandlinie是Firebug中总有用的一个特性。如果你有Microsoft Visual Studio的使用经验,你就会知道“Immediate Window”和“Watch Window”的作用,我倒是想起了AutoCAD中的Commandline,通过快速的输入命令来完成操作。Fir...
分类:
其他好文 时间:
2014-07-10 10:45:51
阅读次数:
255
preface(见面礼):仅扫tcp端口:netstat -tnlp|egrep -i "$1"udp+tcpnetstat -tunlp|egrep -i "$1"(服务器端口扫描,数据保存到shell array) 1 #!/bin/bash 2 portarray=(`netstat -tn....
分类:
其他好文 时间:
2014-06-29 18:19:45
阅读次数:
253
为何写脚本每次用新的机器,都要把python的环境给安装一遍~so,这是一件很操蛋的问题,就shell练手写了一个code,嘿嘿,渣渣技术~测试环境我爱vagrant,一条命令直接还原成干净的测试环境,大爱啊~脚本如下:#!/bin/bash
#Auther:zhuima
#Date:2014-06-26
#Function:createpython..
分类:
编程语言 时间:
2014-06-28 06:37:27
阅读次数:
375
要求:批量创建10个系统账号oldboy01-oldboy10,并设置生成密码(密码不同).实现脚本:#!/bin/bash
#Question3
foriin$(seq-w10)
do
useradd-s/bin/basholdboy$i
echo"password$i"|md5sum|tee-apasswd.txt|passwd--stdinoldboy$i
done脚本执行效果:[root@localhostq4]#shq4.sh
Cha..
分类:
其他好文 时间:
2014-06-28 06:21:21
阅读次数:
340
#!/bin/bash
#
#
#thisisinstallkeepalived+lvs-DR
#
#
tar_dir=/usr/src
configure_yum()
{
echo"[rhel-local]">/etc/yum.repos.d/rhel-local.repo
echo"baseurl=file:///media/Server">>/etc/yum.repos.d/rhel-local.repo
echo"enabled=1">>/etc/yum.repos..
分类:
其他好文 时间:
2014-06-28 06:08:16
阅读次数:
373
遍历目录中所有文件,并且统计文件类型。#!/bin/bash
#filename:filestat.sh
#set-x
if[$#-ne1];
then
echo$0basepath;
echo
fi
path=$1
declare-Astatarray;
whilereadline;
do
ftype=`file-b"$line"`
letstatarray["$ftype"]++;
done<<(find$path-typef-print)
ech..
分类:
其他好文 时间:
2014-06-28 00:16:08
阅读次数:
224