I'm trying to run the command
time -f "\t%E real,\t%U user,\t%S sys" ls -Fs
on my zsh but I get
zsh: command not found: -f
But I got this line of code from the man docs of time.
Is this an issue with zsh?
The zsh
builtin time
(as you've figured out by now) doesn't take a -f
option; rather, you set the value of the shell parameter TIMEFMT
$ TIMEFMT=$'\t%E real,\t%U user,\t%S sys'
$ time ls -Fs
Try /usr/bin/time -f "\t%E real,\t%U user,\t%S sys" ls -Fs
I found this answer here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With