Weird with time command verbose option
Paul Smith
paul at mad-scientist.net
Thu Jul 10 20:11:54 UTC 2025
On Thu, 2025-07-10 at 16:05 -0400, Jeffrey Walton wrote:
> If time is located in a non-standard location (like /opt ?), then the
> following should find it:
>
> $(command -v time) --verbose -- /usr/bin/ls
>
> (I'm not sure why someone would update the time program, but I guess
> it could happen).
To be pedantic, you don't need the $(command -v ...)
Just use "command". This:
command time --verbose /usr/bin/ls
is the same as what you wrote above.
https://pubs.opengroup.org/onlinepubs/9799919799/utilities/command.html
More information about the ubuntu-users
mailing list