雜項筆記



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" xxxx@126.com -- -f testuser01@xiaodidi.com < a.txt
\\指定用戶去發送郵件。要使用 -- 再加 -f $USER
 
shell中telnet
# /usr/bin/telnet 192.168.10.233 25 <<! >temp
> quit
> !
 
(sleep 5;) | telnet IP PORT 這樣就能夠在telnet後將PORT在5秒內輸出的數據打印到屏幕上,而後自動退出
 
  unzip file.zip -d dst_dir  將zip解壓到指定目錄
相關文章
相關標籤/搜索