Redirect stdout and stderr

From PedrosBrainDump
Revision as of 09:40, 7 January 2025 by 413vhcu1lq0463ob (talk | contribs) (Created page with "To redirect a stderr and stdout to a file you can send the stderr to the stdin and write the stdin into a file.<blockquote>command > outputfile 2>&1</blockquote>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

To redirect a stderr and stdout to a file you can send the stderr to the stdin and write the stdin into a file.

command > outputfile 2>&1