News for hackers. Stuff that matters.
Re:What does " 2>&1 " mean? by post-it on Thursday February 26, 2026 @07:17PM (#47174375)
Multiple levels of logging, all of which you want to capture but not all in the same place.
Re:What does " 2>&1 " mean? by skydhash on Thursday February 26, 2026 @08:24PM (#47175053)
Wasn't the idiomatic way the `-v` flag (repeated for verbosity). And then stderr for errors (maybe warning too).
Re:What does " 2>&1 " mean? by notpushkin on Thursday February 26, 2026 @11:57PM (#47176712)
It is, and all logs should ideally go to stderr. But that doesn’t let you pipe them to different places.
Re:What does " 2>&1 " mean? by post-it on Friday February 27, 2026 @11:01AM (#47182074)
Yes, but sometimes you want just important non-error logs to go to the console or journal, and then those plus verbose logs to go to a file that gets rotated, and then also stderr on top of that.