Ubuntu – How to mute from the command line

alsacommand linepulseaudio

How do you mute the sound system from the command line?

Best Answer

Assuming you're using ALSA driver, run:

amixer set Master mute   
amixer set Master unmute

Or, you can just use:

amixer set Master toggle

to toggle mute on and off.