Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> • 2 means “the error output” • > means “send it to” • &1 means “wherever the normal output is currently going” (the & just means “I’m referring to a pipe, not a file named 1”)

If you want it with the correct terminology:

2 means "file descriptor 2", > means "assign the previous mentioned to the following", &2 means "file descriptor 1" (and not file named "1")

 help



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: