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
> !
> quit
> !
(sleep 5;) | telnet IP PORT 這樣就可以在telnet後將PORT在5秒內輸出的數據打印到屏幕上,然後自動退出
unzip file.zip -d dst_dir 將zip解壓到指定目錄