How To Use Time Command.
In this article we will show you how to use time command.
For example, if you have two different scripts doing the same job and you want to know which one performs better you can use the Linux time command to determine the duration of execution of each script.
Time Command Versions
Using Linux Time Command.
What will be printed as an output depends on the version of the time command you’re using:
real or total or elapsed (wall clock time) is the time from start to finish of the call. It is the time from the moment you hit the Enter key until the moment the wget command is completed.
user – amount of CPU time spent in user mode.
system or sys – amount of CPU time spent in kernel mode.
By now you should have a good understanding of how to use the time command.