可以使用 time 实用程序确定命令执行所花的时间。此实用程序以两个版本提供:作为 shell 内置程序以及作为程序 (/usr/bin/time)。
$ time find . > /dev/null real 0m4.051s user 0m0.042s sys 0m0.205s