which command without output code example
Example: base ignore output
# Ignore stdout
MyCommand >/dev/null
# Ignore everything
MyCommand 2>&1 /dev/null
# Ignore stdout
MyCommand >/dev/null
# Ignore everything
MyCommand 2>&1 /dev/null