What is /dev/null 2>&1?

I found this piece of code in /etc/cron.daily/apf

#!/bin/bash  
/etc/apf/apf -f >> /dev/null 2>&1  
/etc/apf/apf -s >> /dev/null 2>&1  

It’s flushing and reloading the firewall.
I don’t understand the >> /dev/null 2>&1 part.

What is the purpose of having this in the cron? It’s overriding my firewall rules.
Can I safely remove this cron job?

9 Answers
9

Leave a Comment