Summarize system resourses used by Linux application

stop-watchLinux utility time is used to run programs and summarize system resources usage.

time runs the program COMMAND with any given arguments ARG… When COMMAND finishes, time displays information about resources used by COMMAND (on the standard error output, by default). If COMMAND exits with non-zero status, time displays a warning message and the exit status.

The following example shows how to check how much time it takes to copy 4 GB data from one USB disk to another:

time dd if=/dev/sda of=/dev/sdb
real 18m2.513s
user 0m0.076s
sys 0m0.016s

Actually, time can be used as a prefix for any Linux application you run to check how much time it takes to get this app. finished. Very useful one.


Stefan Durand

My name is Stefan, I'm the admin of LinuxScrew. I am a full-time Linux/Unix sysadmin, a hobby Python programmer, and a part-time blogger. I post useful guides, tips, and tutorials on common Linux and Programming issues. Feel free to reach out in the comment section.

Leave a Reply

Your email address will not be published. Required fields are marked *