Skip to content

Time – Run Programs and Summarize System Resource Usage

Today’s post is a quickie, and more along the lines of a “package of the day”, but I thought it would be interesting to share.

The time command in Linux will offer you system resource summaries and total time taken to complete the job requested. Usage of the time command is very simple (although see man time for more information).

I used this command last to see how long it took to write psuedo-random data to a 6G USB disk:

time dd if=/dev/urandom of=/dev/sdb bs=4096

(example output, not accurate for this command)
real 22m1.513s
user 0m0.076s
sys 0m0.016s

The time command can be a prefix to just about any command you run and want a timed output for.  Give it a try.

If this site has been useful, please consider participating in the Fundraiser.

Other Points of Interest

  • No Related Post