Skip to content
theutz.com
« Back

Piping Output to `/dev/null`

  • zsh
  • shell
  • coding

If you only want to mute STDOUT, this should do the trick:

echo "something" >/dev/null

But if you want to pipe both STDOUT and STDERR, use this:

cd directory-that-doesnt-exist &>/dev/null