Skip to main content


Showing posts from April, 2014

time command in Linux

The time command is linux is very much useful if you want to know the time information while running a program or a process.
The time command usage is as follows

prompt $] time <commandname>
prompt $] time ls
The output will be

If you want to see the detailed system parameters occupied during a program or process, then the command will be  prompt$] TIMEFORMAT="" time -v <commandname> See the screenshot given below
The output of the above command is
Desktop  Documents  Downloads  examples.desktop  MusicPictures  Public  Templates  Videos
Command being timed: "ls"
User time (seconds): 0.00
System time (seconds): 0.00
Percent of CPU this job got: 400%
Elapsed (wall clock) time (h:mm:ss or m:ss): 0:00.00
Average shared text size (kbytes): 0
Average unshared data size (kbytes): 0
Average stack size (kbytes): 0
Average total size (kbytes): 0
Maximum resident set size (kbytes): 3600
Average resident set size (kbytes): 0
Major (requiring I/…