How to Hide a Command's Output in bash and zsh with > /dev/null
Some commands print things you don't need, especially inside scripts. Redirecting their output to /dev/null, a special file that throws away everything written to it, keeps the terminal quiet. This guide hides the output of ls, with real output from zsh 5.9.
