Forrest logo
back to the pactl tool

pactl:tldr:c333a

pactl: Change the default sink (output) to 1 (the number can be retrieved via the `list` subcommand).
$ pactl set-default-sink ${1}
try on your machine

This is a command used in the Linux operating system to set the default audio output device or sink using the PulseAudio sound server.

Here's the breakdown of the command:

  • pactl: This is the command-line tool for PulseAudio, which is a sound server that runs on Linux operating systems.
  • set-default-sink: This is an option or sub-command for pactl used to set the default audio output device.
  • ${1}: This is a placeholder or variable that represents the first argument passed to the command. In this case, it is used to specify the sink or audio output device to be set as the default.

To use this command, you would replace ${1} with the actual name or identifier of the audio output device you want to set as the default. This could be the name of an existing sink, like "alsa_output.pci-0000_00_1b.0.analog-stereo", or a numerical index like "1" representing a specific sink.

For example, if you want to set the sink with the name "alsa_output.pci-0000_00_1b.0.analog-stereo" as the default, you would use the command: pactl set-default-sink alsa_output.pci-0000_00_1b.0.analog-stereo.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the pactl tool