Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
skydhash
2 days ago
|
parent
|
context
|
favorite
| on:
What does " 2>&1 " mean?
Wasn't the idiomatic way the `-v` flag (repeated for verbosity). And then stderr for errors (maybe warning too).
help
notpushkin
2 days ago
|
next
[–]
It is, and all logs should ideally go to stderr. But that doesn’t let you pipe them to different places.
reply
post-it
1 day ago
|
prev
[–]
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.
reply
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: