如何让bash默认使用时间二进制(/ usr / bin / time)而不是shell关键字?
which time
收益/usr/bin/time
type time
回报time is a shell keyword
运行time
显然是执行外壳关键字:
$ time
real 0m0.000s
user 0m0.000s
sys 0m0.000s
$ /usr/bin/time
Usage: /usr/bin/time [-apvV] [-f format] [-o file] [--append] [--verbose]
[--portability] [--format=format] [--output=file] [--version]
[--quiet] [--help] command [arg...]
enable -n time
退货 bash: enable: time: not a shell builtin
type -a <cmd>
。