November 1998
Beginner
368 pages
7h 58m
English
Sometimes, you might want to know how long a job takes to complete. You can do so using the time command, which times jobs according to the built-in UNIX timer. As Code Listing 9.9shows, all you have to do is enter time followed by the job you want to time.
To time a job using time:
time script
To compare job times with time:
1. | time ls |
2. | time nice -n 19 ls |
Read now
Unlock full access