command 2>&1 | less
But if you want to send the standard error and output to a file, it's the other way around:
command > file 2>&1
Variants that don't work:
command | less 2>&1 command 2>&1 > file command | 2>&1 less command > 2>&1 file
Using &> instead of >& not only doesn't work, it generates junk files named things like "1" (or clobbers those files if they exist already).
Isn't the UNIX shell a brilliant productivity tool?