![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
shell
zyz611
这个作者很懒,什么都没留下…
展开
-
linux常用验证
#return 0 means input right, return 1 means input wrongcheckPort(){ #check the input number echo $1 | grep [^0-9] > /dev/null if [ $? = 0 ] then echo "please input number...原创 2011-12-25 11:39:00 · 170 阅读 · 0 评论 -
Xshell找不到鼠标办法
You can use the "Windows Black" cursor scheme that is included in the default installation and works with any background. For Win7 OS, you can do this,Start->Control Panel->Hardware and voice->devic...原创 2017-01-24 16:56:03 · 4776 阅读 · 0 评论 -
备份,删除文件
removeBackUplist(){ cd $miniHome rm -rf $backUpList}#$1 means remove the file or directory, $2 means back directorybackUpIndex=1backUpList=backUplistbackUpFile(){ ...原创 2012-03-31 12:52:00 · 104 阅读 · 0 评论 -
xmanage 远程桌面访问
service rcxdm restart Xmanager1. 编辑 '/etc/opt/kde3/share/config/kdm/kdmrc' file in config section '[XDMCP]' 更改"Enable=false" to "Enable=true",将port=177的屏蔽去掉。2. 编辑 '/etc/sysconfig/displaymana...原创 2012-02-28 16:04:12 · 253 阅读 · 0 评论 -
替换JAR包中的文件
scriptHome=`pwd`legoPlatHome=$scriptHome/LEGO_V100R001echo $scriptHome > scriptHomeecho $legoPlatHome > legoPlatHomelog=$scriptHome/changelogdebug(){ echo $1 >> $log}showM...原创 2012-02-15 21:24:54 · 225 阅读 · 0 评论 -
history 显示时间
HISTFILESIZE=2000HISTSIZE=2000HISTTIMEFORMAT="%Y-%m-%d %H:%M:%S " export HISTTIMEFORMAT原创 2012-02-02 19:09:18 · 87 阅读 · 0 评论 -
samba 配置
comment = ismServer path = /home/ISMVersion read only = No inherit acls = Yes security = user public = no writable = yes browseable = ye...原创 2012-05-10 20:39:55 · 87 阅读 · 0 评论 -
分析日志
debug(){ debug="true" if [ $debug = "true" ] then echo $1 fi;}getYesterday(){ yesterday= yesterday=`date -d last-day +"%Y/%m/%d"` debug $y...原创 2012-01-19 13:50:29 · 96 阅读 · 0 评论 -
替换目录里面的文件
[ ! -f $1 ] && { echo "can not find the file:$1";exit 1; }[ ! -d $2 ] && { echo "can not find the dir:$2";exit 1; }fileName=`basename $1`echo "$fileName"for f in `find $2 -name $fileName`...原创 2012-04-25 12:52:25 · 201 阅读 · 0 评论 -
监控文件变化
#!/usr/bin/env bash> /var/updresult.ini.watcholdupdresult256=""watchFileResult=xxxxmonitoredFile=xxxwhile truedo date >> $watchFileResult updresult256=`sha256sum $monito...原创 2017-03-13 17:17:28 · 180 阅读 · 0 评论