2>&1

Kövesdán Gábor gabor.kovesdan at t-hosting.hu
Sun May 28 05:53:31 PDT 2006


Grant Peel wrote:
> Hi all,
>
> When using cron, I understand the >/dev/null thing OK, but what 
> exactly does >2&1 do? Is it usefull anywhere else? Where might one 
> find ducumentation on it?
>
> -Grant
>
The standard stream stdout has the assigned number 1, and the stderr has 
number 2. The >/dev/null redirects stdout to /dev/null and 2>&1 means 
redirecting stderr to stdout, so it goes to /dev/null as well.

Gabor Kovesdan


More information about the freebsd-questions mailing list