Link to home
Start Free TrialLog in
Avatar of CharanR
CharanR

asked on

what is the meaning of /dev/null 2>&1

Hi,

I see this in a lot of scripts
What exactly does this mean and what is the use of this?
ASKER CERTIFIED SOLUTION
Avatar of mrjoltcola
mrjoltcola
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Also, your sample /dev/null is a fragment, normally you see a > before it:

> /dev/null
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial