• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

pw-cat Command Examples in Linux

by Deepika

Pw-cat is a command-line tool for playing and recording audio files using the Pipewire multimedia framework. Pipewire is a modern, low-latency audio and video processing framework designed to replace the aging JACK and PulseAudio systems.

The Pw-cat tool allows users to play and record audio files in a variety of formats, including WAV, FLAC, MP3, and OGG Vorbis. It supports a range of audio devices and outputs, including sound cards, Bluetooth devices, and network audio streams.

pw-cat Command Examples

1. List all available playback targets:

# pw-cat --playback --list-targets

2. Play a WAV file over the default target:

# pw-cat --playback {{path/to/file.wav}}

3. List all available record targets:

# pw-cat --record --list-targets

4. Record a sample recording at a different volume level:

# pw-cat --record --volume={{0.1}} {{path/to/file.wav}}

5. Record a sample recording using a different sample rate:

# pw-cat --record --rate={{6000}} {{path/to/file.wav}}

Summary

Overall, Pw-cat is a useful tool for playing and recording audio files using the Pipewire multimedia framework, and can be a powerful addition to a Linux-based audio production or editing setup.

Filed Under: Linux

Some more articles you might also be interested in …

  1. fish: The Friendly Interactive SHell, a command-line interpreter designed to be user friendly
  2. apt Command Examples in Linux
  3. named Command Examples in Linux
  4. envsubst: Substitutes environment variables with their value in shell format strings
  5. btrfs Command Examples in Linux (cheat sheet)
  6. CentOS / RHEL : Converting an Existing Root Filesystem to LVM Partition
  7. cordova: Mobile apps with HTML, CSS & JS
  8. autopkgtest: command not found
  9. duperemove Command Examples in Linux
  10. ipcalc: command not found

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright