Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to get a bit more information than the standard time command gives, so I want to pass the verbose flag. info time gives as example time -v sleep 4, however when I execute that (both in bash or tcsh) I get

% time -v sleep 4
-v: Command not found.
0.000u 0.000s 0:00.00 0.0%  0+0k 0+0io 0pf+0w

What am I doing wrong?

share|improve this question
add comment

1 Answer

up vote 8 down vote accepted

If you execute time then (even though which time will claim otherwise...) you execute the time command of the shell. That version does not accept -v. Instead, execute the proper time executable: [source]

$ /usr/bin/time -v sleep 4

That will work.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.