outout format of time command

Rick Sewill rsewill at gmail.com
Tue Feb 1 10:27:49 UTC 2011


On Tuesday, February 01, 2011 04:13:20 am Adel ESSAFI wrote:
> Hello,
> I have  followed the man page of  time commande to put a certain output
> format.
> However, time command does not recognise -f  option.
> 
> Could you help please.
> 
> 
> 
> [adel at localhost generateInstance]$ time -f "%e" ls
> bash: -f: command not found

There are two separate time commands.

One is a bash built-in.  
To set the format for this time, please set the environment variable,
TIMEFORMAT.  Please do "info bash" and search for TIMEFORMAT.

The other is the time command described by "man time".
To use this time command, please do $(which time) -f "%e" ls
On my system, $(which time) happens to be /usr/bin/time
so I can also do /usr/bin/time -f "%e" ls
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20110201/bf014e6f/attachment.bin 


More information about the users mailing list