Unix 基本指令操作

IO Redirection: File Descriptors
file descriptor 0 is associated with STDIN, 1 with STDOUT, and 2 with STDERR.
ex: 2>&1 將 錯誤訊息(STDERR) 直接導向 標準輸出(STDOUT)
ex: 2>& > /tmp/output
ex: >& > /tmp/output (標準輸出 輸入都一起導到 /tmp/output file)

< input file : read standard input from file
> output file : write standard output to file
>> output file: append standard output to file
>& error file : write error message to file
| command2 : pipe output as input for command2

ex: ls 2>/dev/null 1>/tmp/output
& => 指定到 &1 的變數(不然會變成 1 的 file)

閱讀全文〈Unix 基本指令操作〉

英國人好面子地上小錢沒人揀

英國人比中國人還愛面子,掉在地上的大錢有人要,小錢卻沒人揀。

英國渥瑞克大學研究人員,拿了些零錢放在路上。有一英鎊、五毛、五分、兩分和一分錢的銅板。


一英鎊銅板的生意最好,三十五秒鐘以後就有人揀走。錢幣受青睞的程度依面值大小遞減。五毛錢的可以在地上躺四分二十二秒,五分錢就得待上十一分二十三秒才有人揀了。最慘的當然是兩分和一分的硬幣,根本沒人理。

渥瑞克大學的斯基納教授說,一分、兩分的錢沒人揀是面子問題。大家怕別人說自己貪財所以不好意思揀。面額大了動力就大了,即使有人說自己愛錢如命也要揀起來。

【中廣新聞網 】

閱讀全文〈英國人好面子地上小錢沒人揀〉