GNU/Linux Command – TIME

time — Measure the program resource usage

Summary:

The `time’ command runs another program, then displays information about the resources used by that program, collected by the system while the program was running. Info consist of (i) Elapsed real time between invocation and termination, (ii) User CPU time and (iii) System CPU time.

Examples:
$ time ls -- Run the ls and show usage info. $ time -p ls -- Same above. Output in portable format. # time -o file ls -- Redirect the output to a file. # time -a -o file ls -- Append the output to a file. # time -v sleep 6 -- Show more detail info. # time -f "t%E real,t%U user,t%S sys" sleep 6 -- Show the formatted output.
Note: By using custom output format, we can print more info about (I) Time, (II) Memory and (III) I/O Resources.

Read: man time

Advertisements
Tagged with: ,
Posted in Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: