亞當

一句到尾

Kill all of your processes.
$ ps -ef|awk ‘{print $2}’|xargs kill

Edit a file and delete the first and last line.
$ vi
1GddGdd:wq!

Find out what’s filling up your home directory.
$ du -k|sort -rn|head

Who has access to the computer?
# cat /etc/passwd|cut -d: -f1,3

Add commas to numerical strings
sed -e :a -e ’s/\(.*[0-9]\)\([0-9]\{3\}\)/\1,\2/;ta’h

在Slashdot的Comments內看到的一句型
Command Lines。是啊,Slashdot的Comments通常比標題內容更精彩。

4 Responses to “一句到尾”

  1. 你個妹啊~~~~~~~~~~on 27 Jul 2005 at 8:29 pm

    你媽媽沒事吧?

  2. 亞當on 27 Jul 2005 at 9:21 pm

    身體越來越差了。但還可以留在家,故最近甚少外出。

  3. Roy Chanon 09 Aug 2005 at 5:15 pm

    Orielly 本 Unix Power Tools 有好多呢 d trick。某程度,這亦是個人強項之一。 XD

  4. 亞當on 09 Aug 2005 at 10:52 pm

    Roy 快 d 同我地分享下啦咁 ~

Trackback URI | Comments RSS

Leave a Reply