时间范围shell
经常忘记时间区间怎么写,为了便于查阅,记录于此。 find ./ -type f -mtime 35(不加符号,表示时间差之前的当天) find ./ -type f -mtime -35(负符号,表示时间差之内的N天) find ./ -type f -mtime +35(正符号,表示N+1天时间差之前的) find -type f -mtime +35 -mtime...
View Articlelftp自动下载
[root@localhost images]#more trans.sh #!/bin/sh cd /vhost/vhostroot/www/images/ HOST="*.*.*.*" USER="webmaster" PASS="password" echo "Start to trans" lftp...
View ArticleMan test 中文帮助文档
NAME test - check file types and compare values SYNOPSIS test EXPRESSION [ EXPRESSION ] [ OPTION DESCRIPTION Exit with the status...
View Article保护脚本的安全性
Shell 脚本我们常用于邮局及主机的相关监控上。在脚本中难免会存在一些敏感的明文信息。比如帐户,密码等。我们可以使用shc把脚本编译成成二进制文件,从而达到加密的结果。 通过http://www.datsi.fi.upm.es/~frosal/sources/获取最新软件 [root@localhost softwore]# tar xzvf shc-3.8.6.tgz...
View ArticleLinux服务器管理Shell经典命令
1.站点根目录下查找是否被放置webshell木马根据语句判断是不是PHP木马脚本# find ./ -name “*.php” |xargs egrep “phpspy|c99sh|milw0rm|eval\(gunerpress|eval\(base64_decode|spider_bc”>/tmp/php.txt# grep -r –include=*.php...
View Article
More Pages to Explore .....