Weird with time command verbose option

Paul Smith paul at mad-scientist.net
Thu Jul 10 20:08:23 UTC 2025


On Thu, 2025-07-10 at 15:58 -0400, Little Girl wrote:
> > Robert Moskowitz via ubuntu-users wrote:
> 
> > > $ time --verbose /usr/bin/ls
> > > --verbose: command not found
> 
> I have the same issue in Konsole (the Kubuntu terminal), but this
> command works for me:
> 
> /usr/bin/time --verbose ls

There are various ways to avoid shell builtins.  The full path method
certainly works but it is slightly annoying that you need to know the
path (obviously it's usually /bin or /usr/bin and these are the same
thing in modern GNU/Linux systems... but...)

Another option that works (in bash for sure) is to escape the first
character:

  $ \time --verbose echo hi
    ...works...

This prevents builtins, aliases, etc. but still does PATH lookup.

Another option is the POSIX-standard "command" built-in:

  $ command time --verbose echo hi
    ...works...

has the same result.
Cheers!



More information about the ubuntu-users mailing list