$(cmd) > /dev/null 2>&1
http://stackoverflow.com/questions/818255/in-the-shell-what-is-21
1 is the default file descriptor for stdout.
2 is the default file descriptor for stderr.
>& is shell syntax for "fold the previous (first) file descriptor into the forthcoming (second) file descriptor."