Linux and Unix time command

Quick links

About time
Syntax
Related commands
Linux and Unix main page

About time

Used to time a simple command.

Tip: If you are trying to display the time in Unix or Linux or a variant use the date command.

Syntax

time [-p] utility [argument]

-p Write the timing output to standard error in the following format:

real %f\nuser %f\nsys %f\n < real seconds>, <user seconds>, <system seconds>

utility The name of the utility that is to be invoked.
argument Any string to be supplied as an argument when invoking utility.

Related commands

csh
date
timex