Linux: Change Sound Level by Command

By Xah Lee. Date: . Last updated: .

Shell Command to Change Sound Volume

# increase sound level
amixer set Master 8%+

# decrease sound level
amixer set Master 8%-
# set to specific sound level
amixer set Master 50%

you can setup a key such as 【❖ Super+】 & 【❖ Super+】 to adjust sound level. See Linux: Keyboard Tools for Key Layout, Keymapping, Keybinding ⌨.

mute and unmute

# mute
amixer set Master mute

# need to run all the following to unmute
amixer set Master unmute
amixer set Headphone unmute
amixer set PCM unmute
amixer set Front unmute
amixer set Surround unmute
amixer set Center unmute
amixer set LFE unmute
amixer set Side unmute

thanks to Adam Arvidsson

Interactively Adjust Sound Level in Terminal

Here's how to change sound interactively in terminal.

linux alsamixer 2014
# show a text gui mixer control panel