You are not logged in.

#1 2008-08-26 06:23:45

hennes
Member
Registered: 2008-03-31
Posts: 50

[Solved] Passing options to the time command

Hi.

I spent quite some time googling on this but didn't get any further. I'm looking for a way to pass options to the time command. In particular I want to set the format string to modify the output. But all I get is:

[jm@elroy main]$ time -f %e ls -hal
bash: -f: command not found

Can anyone help?

Last edited by hennes (2008-08-26 06:51:49)

Offline

#2 2008-08-26 06:39:59

Lord Illidan
Member
From: Malta
Registered: 2007-10-25
Posts: 248

Re: [Solved] Passing options to the time command

You have to install time from the extra repository, and then run it with /usr/bin/time. I guess you could also set up an alias if you want to make the time command run /usr/bin/time instead.

Offline

#3 2008-08-26 06:51:36

hennes
Member
Registered: 2008-03-31
Posts: 50

Re: [Solved] Passing options to the time command

Geez, I didn't know there was another time program. Many thanks! Case closed. smile

Offline

Board footer

Powered by FluxBB