How do you get the thing to be quieter?
In my firewall sh
script, I want to test whether or not a chain already exists -- to either create it or flush it.
# iptables -L THISISNOTACHAIN 2>&1 >/dev/null; echo $?
iptables: No chain/target/match by that name.
#
>/dev/null 2>&1
- see Order of redirections – steeldriver Jul 01 '21 at 16:17