Executing a command with no output [duplicate]
Solution 1:
Redirect to /dev/null will silent the result of the command but still display the errors:
ls >/dev/null
To also hide the errors you can do this:
ls >/dev/null 2>&1
https://unix.stackexchange.com/questions/80629/redirect-both-stderr-and-stdout-to-dev-null-with-bin-sh