Page 1 of 1

Welcome to the Tweaking4All community forums!
When participating, please keep the Forum Rules in mind!

Topics for particular software or systems: Start your topic link with the name of the application or system.
For example “MacOS X – Your question“, or “MS Word – Your Tip or Trick“.

Please note that switching to another language when reading a post will not bring you to the same post, in Dutch, as there is most likely no translated for the post!

Linux - Stopwatch/T...
Clear all

Linux - Stopwatch/Timer for command line excutions  


Noble Member Admin
Joined: 7 years ago
Posts: 1363
June 15, 2014 4:30 AM  

Linux offers a quick and dirty way to "time" the execution of a command on the command line (CLI).
I needed this to time the speed of certain compression programs like Zip, 7Zip, and WinRAR.

Basic format:

time <your commands>

and produces what your "commands" normally would produce, followed by something like:

real	0m0.014s
user 0m0.002s
sys 0m0.004s

The first line (real) is the time elapsed while executing your commands.


time ls -l

Which lists the file in long format of your current directory.