This question already has an answer here:
what does this command do if it was executed in my current working directory that has files in it?
ls 2> result
I think whatever ls writes will be redirected to the result file?
Is that correct and will it redirect everything for stderr and stdout? Or only stderr?