Weird with time command verbose option

Robert Moskowitz rgm at htt-consult.com
Thu Jul 10 20:48:14 UTC 2025


This is yet another example of why Linux is so much fun!!!

It keeps you in learning mode.  Or at least remembering mode.

:)

On 7/10/25 4:20 PM, Oliver Grawert wrote:
> Hi,
> Am Donnerstag, dem 10.07.2025 um 14:57 -0400 schrieb Robert Moskowitz
> via ubuntu-users:
>> after a bunch of failures, i figured out path is important...
>>
>> $ time --verbose /usr/bin/ls
>> --verbose: command not found
> As you might have guessed by other answers in this thread, this is a
> builtin time command from bash instead of the GNU time you find in
> /usr/bin ... you can find options of such builtins with bashs help
> function:
>
> ogra at styx:~$ help time
> time: time [-p] pipeline
>      Report time consumed by pipeline's execution.
>      
>      Execute PIPELINE and print a summary of the real time, user CPU
> time,
>      and system CPU time spent executing PIPELINE when it terminates.
>      
>      Options:
>        -p	print the timing summary in the portable Posix format
>      
>      The value of the TIMEFORMAT variable is used as the output format.
>      
>      Exit Status:
>      The return status is the return status of PIPELINE.
> ogra at styx:~$
>
>
> So you can see the builtin time only knows one option and it will
> interpret "--verbose" as the "pipeline" (i.e. the command), which then
> causes the error you get ...
>
> ciao
> 	oli
>




More information about the ubuntu-users mailing list