Get Full Resource Usage with /usr/bin/time -v
The GNU time binary's -v flag prints wall-clock time, max RSS memory, page faults, and context switches for any command.
Run `/usr/bin/time -v <command>` to get detailed resource usage including Maximum resident set size and wall-clock Elapsed time.
01Command
Command
$ /usr/bin/time -v ./heavy-job02What it does
The shell keyword `time` only shows real/user/sys seconds; GNU time is a separate binary (often not installed, hence `apt install time`) whose -v flag reports a dozen more metrics. The most useful are Maximum resident set size (peak memory in KB), Elapsed (wall time), and minor/major page faults. Always invoke it with the full path, or the shell keyword will silently ignore -v and print an error.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- time(1) - time a simple command or give resource usageEvidence: -v, --verbose: include all information from the program, including Maximum resident set size, page faults, and voluntary/involuntary context switches.
Last verified: 2026-09-17 · Category: System & Settings