Name

time [man page] - run programs and summarize system resource usage

Synopsis

time   [ -apqvV ] [ -f FORMAT ] [ -o FILE ]
       [ --append ] [ --verbose ] [ --quiet ]
       [ --portability ] [ --format=FORMAT ]
       [ --output=FILE ] [ --version ]
       [ --help ] COMMAND [ ARGS ] 

Examples

Measure time for running program time itself:

$ time 

Measure time for running program
Measure execution time of "find" command and redirect stderr to /dev/null:

$ time find / -name resolv.conf 2>/dev/null 

Measure execution time of find

ARE YOU LOOKING FOR A LINUX JOB?
Submit your RESUME or create a JOB ALERT on LinuxCareers.com job portal.
DO YOU NEED ADDITIONAL HELP?
Get extra help by visiting our LINUX FORUM or simply use comments below.

You may also be interested in: