Weird with time command verbose option

Oliver Grawert ogra at ubuntu.com
Thu Jul 10 20:20:47 UTC 2025


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