I’m running the following command (on Ubuntu)
time wget 'http://localhost:8080/upLoading.jsp' --timeout=0
and get a result in the command line
real 0m0.042s
user 0m0.000s
sys 0m0.000s
I’ve tried the following:
time -a o.txt wget 'http://localhost:8080/upLoading.jsp' --timeout=0
and get the following error
-a: command not found
I want to get the result to be redirected to some file. How can I do that?
You can direct the
stdoutoutput of any commmand to a file using the>character.To append the output to a file use
>>Note that unless done explicitly, output to
stderrwill still go to the console. To direct bothstderrandstdoutto the same output stream useor
If you are working with
bashAll about redirection will give you more details and control about redirection.