Skip to main content

Cmus Cheat Sheet

Summary

Comprehensive cheat sheet for using cmus, the console-based music player. Essential commands for navigation, playback, filtering, volume control, and playlist management.

Introduction #

Cmus (C Music Player) is a lightweight, fast, and feature-rich console-based music player for Unix-like operating systems. Cmus supports various audio formats, playlists, and advanced playback controls.

I have been using cmus for more than 15 years and still have to look up some commands every now and then, here is my cheat sheet:

Views #

Switch between different views in Cmus to focus on specific tasks:

Playback #

Volume Control #

Search commands are basically Vim commands:

Filtering #

Cmus provides powerful filtering capabilities to manage large music libraries. Use the :filter command to narrow down the visible tracks.:

These commands may only work in certain views.

Managing Playlists #

Settings #

Synopsis:

:set <option>=<value>

You can save preferences as permanent settings in a configuration file ~/.config/cmus/rc.

In that file, save settings like that:

…
set output_plugin=alsa
set replaygain=0
set softvol=true
set auto_reshuffle=true
…

ReplayGain #

ReplayGain automatically adjusts the playback volume of audio tracks based on their loudness metadata. This helps maintain consistent volume levels across different tracks or albums, avoiding sudden volume changes during playback.

To can check the current configuration by going to the settings view by pressing 7. There, search for replaygain, e.g. /replaygain.

Audio Output #

Cmus supports various audio output plugins (output_plugin) depending on your system setup:

To can check the current configuration by going to the settings view by pressing 7. There, search for output_plugin, e.g. /output_plugin.

Auto Reshuffle #

The auto_reshuffle setting in Cmus controls whether the current playlist is automatically reshuffled when all tracks have been played.

To can check the current configuration by going to the settings view by pressing 7. There, search for auto_reshuffle, e.g. /auto_reshuffle.

Shuffle #

The shuffle setting enables (true) or disables (false) random track playback in the current playlist or music library.

If shuffle=true and auto_reshuffle=true, Cmus reshuffles the playlist when it reaches the end, ensuring continuous random playback.

To can check the current configuration by going to the settings view by pressing 7. There, search for shuffle, e.g. /shuffle.

Softvol #

By configuring softvol you can manage playback volume even when hardware volume control is not available or does not work as expected.

To can check the current configuration by going to the settings view by pressing 7. There, search for softvol, e.g. /softvol.

Cmus Tutorial #

The Cmus tutorial is a manual page that provides a step-by-step guide for using Cmus. It offers a clear and structured learning path for mastering Cmus, from basic playback to advanced customization. It is a great reference if you are new to Cmus or need a refresher on less frequently used features.

To access the Cmus tutorial, simply run the following command in your terminal:

man cmus-tutorial

This will display the full tutorial directly in your terminal.


Further readings #

Sources and recommended, further resources on the topic:

Author

Jonas Jared Jacek • J15k

Jonas Jared Jacek (J15k)

Jonas works as project manager, web designer, and web developer since 2001. On top of that, he is a Linux system administrator with a broad interest in things related to programming, architecture, and design. See: https://www.j15k.com/

License

License: Cmus Cheat Sheet by Jonas Jared Jacek is licensed under CC BY-SA 4.0.

This license requires that reusers give credit to the creator. It allows reusers to distribute, remix, adapt, and build upon the material in any medium or format, for noncommercial purposes only. To give credit, provide a link back to the original source, the author, and the license e.g. like this:

<p xmlns:cc="http://creativecommons.org/ns#" xmlns:dct="http://purl.org/dc/terms/"><a property="dct:title" rel="cc:attributionURL" href="https://www.ditig.com/publications/cmus-cheat-sheet">Cmus Cheat Sheet</a> by <a rel="cc:attributionURL dct:creator" property="cc:attributionName" href="https://www.j15k.com/">Jonas Jared Jacek</a> is licensed under <a href="https://creativecommons.org/licenses/by-sa/4.0/" target="_blank" rel="license noopener noreferrer">CC BY-SA 4.0</a>.</p>

For more information see the DITig legal page.


“When providing information, make sure your site has something unique to offer.”

Sally Hambridge, Chair of the IETF Network Working GroupIETF RFC 1855 - Netiquette Guidelines, - IT quotes