I am a beginner for Unix and I am trying do the following things:
time ls
This cmd will display the result of ls and timestamp on the screen. I can put the result of "ls" into a file by
time ls > ls_result.out
Or I can put both results of ls and time into a file by
(time ls) > both.out
But I want to know how can I separate them and put result of time command into a single file?