今天看到了這麼一條命令html
rm -f /usr/bin/aa 2> /dev/nullhtm
啥意思呢?get
2 表明 stderr輸出文件
/dev/null表明 空文件co
也就是說,aa若是刪除失敗,也不要顯示出來。360
網上搜了一下,還要更復雜的寫法tar
>/dev/null 2>&1
詳解:http://www.360doc.com/content/11/1020/16/6702151_157743274.shtml