dir /b
That will avoid date/time, etc.
2>&1 says to write any error messages to the same place as the regular messages.
example, if you say
type abc.txt
then abc.txt will be typed to the console, right?
and if there is no file abc.txt, an error message instead.
If you say
type abc.txt >mylog.txt
then abc.txt will be type to mylog.txt. But if there is no file abc.txt then an error message will be typed to the console, not abc.txt.
But if you say
type abc.txt >mylog.txt 2>&1
both will go to mylog.txt.
2> is for errors
1> is normal (nobody ever types the "1" but they could)
Mac