Command Output Redirecting 2>&1 By gunnalagApril 22, 2011Scripting 2>&1: —— 2>&1 redirects output going to file-handle 2 (stderr) to file handle 1 (stdout), so that stderr and stdout combine into a single redirectable output stream.