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.

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

Syntax

time [-p] utility [argument]

-pWrite the timing output to standard error in the following format:

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

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

Related commands

csh
date
timex