How To: Time a Command
Have you ever wanted to know how long it takes to complete a command that you entered in the Linux terminal? Well, wonder no more!
[code]ls -la[/code]
time‘ command before it. Time is simply described in the man page as:
[code]time ls -la[/code]
Note how it tells you the time beneath the results and, if you want to try something bigger, you can take a look at this command:
The output at the end is something like this:
real 0m0.566s
user 0m0.423s
sys 0m0.143s