分类: LINUX
2009-04-04 10:01:27
liang@blueice2:~$ type type type is a shell builtin liang@blueice2:~$ type time time is a shell keyword liang@blueice2:~$ type date date is /bin/date liang@blueice2:~$ type nameTerminal nameTerminal is a function nameTerminal () { if [ "$TERM" = "xterm" ]; then PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007"'; [ "$1" ] && PROMPT="\033]0;$1\007" && PROMPT_COMMAND='echo -ne ${PROMPT}'; fi } |
blueice2:/mnt/e/soft/office/office2003# which time /usr/bin/time blueice2:/mnt/e/soft/office/office2003# type time time is a shell keyword blueice2:/mnt/e/soft/office/office2003# time ls |wc -l 110 real 0m0.019s user 0m0.000s sys 0m0.008s blueice2:/mnt/e/soft/office/office2003# /usr/bin/time ls |wc -l 0.00user 0.00system 0:00.01elapsed 28%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (0major+280minor)pagefaults 0swaps 110 |