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> Example prompt $] time ls The output will be real 0m0.002s user 0m0.004s sys 0m0.000s 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  Music Pictures  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 reside