There is a very handy way to know how fast a terminal command runs. Simply add the command ‘time’ before a terminal command to get back a helpful listing of how long it took to run.
1 2 3 4 5 |
$ time <command> real 0m0.280s user 0m0.064s sys 0m0.012s |
- real – The actual elapsed time from start to finish
- user – The amount of CPU time spent executing the process in user-mode
- sys – The amount of CPU time spent in the kernel for the process