Linux: Change Volume by Command

By Xah Lee. Date: . Last updated: .

Here's 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+】 and 【Super+】 to adjust sound level. See Linux: Keyboard Software Guide.

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

Start alsamixer in terminal.

# show a text gui mixer control panel

Then, you can use up/down arrow keys to adjust volume.

Mouse scroll-wheel also works, if your terminal supports it.

Linux Keybinding How-to

  1. Keyboard Software Guide
  2. Swap Control Alt Keys
  3. Set F2 F3 F4 to Cut Copy Paste
  4. CapsLock → Escape
  5. CapsLock → Home
  6. Shift Lock
  7. Key to Switch App
  8. Key Repeat Rate
  9. System Keyboard Layout
  10. Switch Keyboard Layout
  11. Change Volume
  12. xmodmap
  13. xbindkeys
  14. xvkbd
  15. Find Keyboard Key Scancode
  16. X11 Keyboard Key Names
  17. 2 Layouts for 2 Keyboards
  18. Chinese Input Setup


  1. Mouse Hover to Auto-Raise Window
  2. Mouse Hover-Click
  3. Set Mouse Single-Click to Open File
  4. How to Set Mouse Speed
  5. How to Swap Mouse Buttons
  6. Set Trackball/Mouse Do Scroll
  7. Setup Accelerated Scroll and AutoScroll
  8. X11 Mouse Button Numbering

If you have a question, put $5 at patreon and message me.