I tried to redirect the output of the time command , but I couldn't
$time ls > filename
real 0m0.000s
user 0m0.000s
sys 0m0.000s
In the file i can get the output of the ls command not the time Please explain me , wny I couldn't and how can I ?