| Subcribe via RSS

Meaning of /dev/null 2>&1 in Crontab’s Cron Job

June 11th, 2008 | No Comments | Posted in System Administration

If you use cron job on Linux, some times you want to ignore the output of the command you executed. This can be done by adding “> /dev/null 2>&1” behind the cron job command.

The command is just work want it should be, but I always curious with what does 2>&1 means. The “> /dev/null” is pretty obvious of what it does without much more explanation, it just redirect all the output to /dev/null which in Linux means we don’t care with the output (or sort of, it’s my own definition). More »

Tags: ,