Linux command
pacmd 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
List sinks (outputs)
pacmd list-sinks
List sources (inputs)
pacmd list-sources
Set default sink
pacmd set-default-sink [sink_name]
Set sink volume
pacmd set-sink-volume [sink_name] [65536]
Move stream to sink
pacmd move-sink-input [index] [sink_name]
Interactive mode
pacmd
说明
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.
参数
- list-sinks
- List output devices.
- list-sources
- List input devices.
- list-sink-inputs
- List playback streams.
- list-source-outputs
- List recording streams.
- list-modules
- List loaded PulseAudio modules.
- set-default-sink _name_
- Set default output.
- set-default-source _name_
- Set default input.
- set-sink-volume _name_ _vol_
- Set sink volume (0-65536 linear).
- set-source-volume _name_ _vol_
- Set source volume.
- set-sink-mute _name_ _0|1_
- Mute/unmute a sink.
- set-source-mute _name_ _0|1_
- Mute/unmute a source.
- move-sink-input _idx_ _sink_
- Move a playback stream to another sink.
- move-source-output _idx_ _source_
- Move a recording stream to another source.
- load-module _name_ _args_
- Load a PulseAudio module.
- unload-module _id_
- Unload a module by index or name.
- help
- Show all supported commands.
- exit
- Terminate the PulseAudio daemon (in interactive mode, use Ctrl+D to quit).
FAQ
What is the pacmd command used for?
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.
How do I run a basic pacmd example?
Run `pacmd list-sinks` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does list-sinks do in pacmd?
List output devices.