$ ./guess_the_languageLinux CLI
Linux CLI · hard · #22

Where does the "No such file" error message go?

ls nosuchfile 2>&1 > out.txt
  1. To the terminal
  2. Into out.txt
  3. Into a file named 1
  4. Nowhere, it is lost
Redirections apply left to right: 2>&1 copies stderr to the terminal before stdout is moved to out.txt.
Play Linux CLI ▸