Connect with us

WEB SOLUTIONS DONE

How to check system resources used in linux

programming

How to check system resources used in linux

How to check system resources used in linux

1. time command name in linux

time- run programs and summarize system resource usage

2. time synopsis for linux

time   [ -apqvV ] [ -f FORMAT ] [ -o FILE ]
       [ --append ] [ --verbose ] [ --quiet ]
       [ --portability ] [ --format=FORMAT ]
       [ --output=FILE ] [ --version ]
       [ --help ] COMMAND [ ARGS ]
3. time examples in linux

Measure time for running program time itself:

$ time

Measure time for running program
Measure execution time of “find” command and redirect stderr to /dev/null:

$ time find / -name resolv.conf 2>/dev/null

Measure execution time of find

Source taken from http://linuxconfig.org/

More in programming

Advertisement




To Top