杂项笔记



find,查找php文件,过滤stocklist目录

# find ./   -path "./stocklist" -prune -o -type f  -name "*.php" -print

根据inode删除文件
find . -inum 3587470 | xargs rm -rf

30分钟正则表达式
http://www.cnblogs.com/deerchao/archive/2006/08/24/zhengzhe30fengzhongjiaocheng.html

http://exchange.nagios.org/
 
# mail -s "use testuser01" [email protected] -- -f [email protected] < a.txt
\\指定用户去发送邮件。要使用 -- 再加 -f $USER
 
shell中telnet
# /usr/bin/telnet 192.168.10.233 25 <<! >temp
> quit
> !
http://bbs.chinaunix.net/thread-390090-1-1.html
 
(sleep 5;) | telnet IP PORT 这样就可以在telnet后将PORT在5秒内输出的数据打印到屏幕上,然后自动退出
http://blog.csdn.net/edei2004/article/details/3694021
 
 
unzip file.zip -d dst_dir  将zip解压到指定目录
 

你可能感兴趣的:(职场,情感,find,休闲)