I know the answer for some shells, e.g. with
cmd.exe you can:
some.exe > out.txt 2>&1
How do you achieve the same for other shells (bash, ksh, tcsh, powershell, etc)?
In Powershell it is exactly the same:
2>&1 Sends errors to the get-process none, powershell 2>&1 success output stream.
It seems to be a common convention.
A quick way to find out about it is by opening the man page of the shell and do a search for