LinuxCommandLibrary

pacmd

TLDR

List sinks (outputs)

$ pacmd list-sinks
copy
List sources (inputs)
$ pacmd list-sources
copy
Set default sink
$ pacmd set-default-sink [sink_name]
copy
Set sink volume
$ pacmd set-sink-volume [sink_name] [65536]
copy
Move stream to sink
$ pacmd move-sink-input [index] [sink_name]
copy
Interactive mode
$ pacmd
copy

SYNOPSIS

pacmd [command]

DESCRIPTION

pacmd is a command-line tool for reconfiguring PulseAudio at runtime. It provides full access to PulseAudio's internal configuration and state.
Running without arguments enters interactive mode with tab completion.

PARAMETERS

list-sinks

List output devices.
list-sources
List input devices.
list-sink-inputs
List playback streams.
set-default-sink name
Set default output.
set-sink-volume name vol
Set volume.
move-sink-input idx sink
Move stream.
exit
Exit interactive mode.

VOLUME SCALE

$ 0     = 0%   (muted)
32768 = 50%
65536 = 100% (normal)
98304 = 150% (amplified)
copy

CAVEATS

PulseAudio specific. Use pactl for simpler operations. Changes may not persist across restarts. Consider PipeWire migration.

HISTORY

pacmd is part of PulseAudio, developed by Lennart Poettering starting in 2004 as a next-generation sound server.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

nuphy Air75 V2 Portable 75% Mechanical Keyboard,Wireless Keyboard

nuphy Air75 V2 Portable 75% Mechanical Keyboard,Wireless Keyboard

$129.95
Lenovo Gen 13 ThinkPad X1 Carbon Touchscreen Laptop with Intel Ultra 7 265U Processor, 14" WUXGA 100% sRGB, 32GB DDR5 RAM, 1TB NVMe Performance SSD, FHD+ IR+ RGB Camera, and Windows 11 Pro

Lenovo Gen 13 ThinkPad X1 Carbon Touchscreen Laptop with Intel Ultra 7 265U Processor, 14" WUXGA 100% sRGB, 32GB DDR5 RAM, 1TB NVMe Performance SSD, FHD+ IR+ RGB Camera, and Windows 11 Pro

$1,589.00
New Raspberry Pi 3 Model B+ Board Raspberry PI 3B+

New Raspberry Pi 3 Model B+ Board Raspberry PI 3B+

$54.00
Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community

Raspberry Pi 5 8GB

Raspberry Pi 5 8GB

$134.50
nuphy Air75 V2 Portable 75% Mechanical Keyboard,Wireless Keyboard

nuphy Air75 V2 Portable 75% Mechanical Keyboard,Wireless Keyboard

$129.95
Bmax Mini PC B2 Power Intel 5205U 8GB DDR4 256GB M.2 NVMe SSD ,HDMI 1.4&DP 1.2, USB3.2,4K Dual Display 2.4G/5G WiFi & BT5.0 Mini Desktop Computers /Office/Design

Bmax Mini PC B2 Power Intel 5205U 8GB DDR4 256GB M.2 NVMe SSD ,HDMI 1.4&DP 1.2, USB3.2,4K Dual Display 2.4G/5G WiFi & BT5.0 Mini Desktop Computers /Office/Design

$169.99