挂上网上邻居当作本地目录 mount -o username=yourname,password=yourpassword,iocharset=utf8 -t cifs //192.168.0.1/sharename /mnt/ 解压缩一个目录中的所有zip文件 for i in *.zip;do unzip -n $i;done wget -t0 -c -b --limit-rate=20k URL ls -l |awk '{print $8}' SED单行脚本快速参考(Unix 流编辑器): http://sed.sourceforge.net/sed1line_zh-CN.htmlsed -i~ '/\/FrontEnd\/OnTheSpot = true/c\/FrontEnd/OnTheSpot = false' ~/.scim/config >/dev/null sed -i~ '/charset=big5/ccharset=utf-8' foo.html FILELIST=`find -type f | grep -v ".AppleDouble" | sed -e 's/ /%20/g' | grep "\(html\|htm\|php\|tpl\|txt\)$"` for filename in ${FILELIST} ; do FILE_NAME=`echo $filename| sed -e 's/%20/ /g'` iconv -c -f big5 -t utf-8 "$1/$FILE_NAME" > temp_file sed -e 's/charset=big5/charset=utf-8/ig' temp_file > temp_file2 done 批量重命名: for i in *.rpm;do targetname=`echo $i |sed 's/_/-/'` && sudo mv $i $targetname; done 远程同步: rsync -r /var/cache/apt/archives/ username@host:/home/username/apt/cache/archives/ linux收听圣经广播网简体中文: mplayer -playlist http://www.bbnradio.org/WindowsMediaDotComASXLinks/wmchinese.asx 排除目录查找包含指定文字的文件: find . -wholename './phpBB3' -prune -o -print| xargs grep -i 'cache->' |