cmus is an open-source, ncurses-based lightweight, fast, and powerful terminal audio player for Unix/Linux-like operating systems, which was released and distributed under the GNU General Public License (GPL) and runs exclusively through a terminal-based user interface.
cmus was designed to run on a text-only user interface, reducing the resources required to run the application on older computers, as well as on systems where the X Window System isn’t available.
cmus application was originally developed by Timo Hirvonen, but he discontinued development around 2008. Later, it was named ‘cmus-unofficial‘ and then taken over by SourceForge in November 2008. In February 2010, it was merged into the official project named ‘cmus‘.
Cmus Features
- Added support for many audio formats including MP3, MPEG, WMA, ALAC, Ogg Vorbis, FLAC, WavPack, Musepack, Wav, TTA, SHN and MOD.
- Faster start-up with thousands of tracks.
- Continuous playback and ReplayGain support.
- Steaming of Ogg and MP3 tracks from Icecast and Shoutcast.
- Strong music library filters and live filtering.
- Play queue and excellent compilations handling.
- Easy to use directory browser and customizable colors with dynamic keybindings.
- Added Vi style search mode and command mode with tab completion.
- Easily controlled via cmus-remote command (UNIX socket or TCP/IP).
- Runs on Unix-like systems, including Linux, OS X, FreeBSD, NetBSD, OpenBSD, and Cygwin.
Install cmus – Music Player in Linux
To install cmus on Linux, use the following appropriate command for your specific Linux distribution.
sudo apt install cmus [On <strong>Debian, Ubuntu and Mint</strong>] sudo yum install cmus [On <strong>RHEL/CentOS/Fedora</strong> and <strong>Rocky/AlmaLinux</strong>] sudo emerge -a sys-apps/cmus [On <strong>Gentoo Linux</strong>] sudo apk add cmus [On <strong>Alpine Linux</strong>] sudo pacman -S cmus [On <strong>Arch Linux</strong>] sudo zypper install cmus [On <strong>OpenSUSE</strong>] sudo pkg install cmus [On FreeBSD]
Once the installation is complete, you can launch cmus by typing cmus in the terminal, which will start and open an album/artist view, which looks something like this.
cmus
Adding Music to CMus
Adding music to cmus is a straightforward process, just press the 5 key on your keyboard to switch to the library view.
Use the arrow keys to select the folder, and hit ‘Enter‘ to navigate to the directory where you’ve stored all your audio files.
To add audio files to your library, use the arrow keys to select a file or folder and press the 'a'
key, which will take you down to the next line, making it easy to add many files or folders quickly.
Begin adding files or folders by pressing 'a'
on your library. Once you’ve added music files, save them by typing `:save`
in the cmus command prompt and pressing ‘Enter‘.
cmus Keys to Control Play
cmus provides a variety of keys to control playback, here are some essential cmus keys to control play:
- Spacebar: Toggle play/pause.
- n: Play the next track.
- u: Play the previous track.
- z: Stop playback.
- x: Clear the playlist.
- s: Toggle shuffle mode.
- r: Toggle repeat mode.
- or >: Increase volume.
- – or : Decrease volume.
Use these keys to navigate and control playback in cmus as you enjoy your music. Adjust the volume, skip tracks, and manage playback effortlessly with these shortcuts.
Managing The Queue in Cmus
Suppose you are listening to a song, and want to play the next song of your choice, without interrupting the currently running track. Simply go to the track that you want to play next and type ‘e‘.
To view/edit the queue, press ‘4‘ and your queue view should look like a simple library view.
If you would like to change the order of the tracks, you can by hitting the ‘p‘ keys. To remove a track from the queue list, simply use ‘*shift-D‘.
Enable Playlist Mode on Cmus
The playlist mode is on ‘3‘, but before moving to the playlist view, let’s add some songs. Press ‘2‘ to get the library view and go to the track that you want and press ‘y‘ to add. Now type ‘3‘ to go to the newly created playlist.
Similar to queue view, where you can use the ‘p‘ keys and ‘d‘ keys to move and delete songs from the playlist.
Search for Track in Cmus
To search a track go to the library view by pressing ‘2‘ and then press ‘/‘ to start a search. Type a track name you’re looking for. CMus will start searching for tracks that have all those words in them. Press ‘Enter‘ to get out of search mode and press ‘n‘ to find the next match.
Customize Cmus Music Player
As I said Cmus has a bunch of very cool settings to tweak, like changing track disk numbers, enabling replaygian support or changing the keybindings. To get a quick view of current keybindings and settings, press ‘7‘ and to change settings or key bind use (up/down keys) and press ‘Enter‘.
Once you’ve done, press ‘:q
‘ and hit ‘Enter‘ to quit. This will save all your library, settings, playlist, and queue.
Further Reading
The cmus application comes with a great reference manual. Here I did not cover most of the features and commands like ‘loading‘ and ‘saving‘ playlists, managing and controlling cmus remotely using the ‘cmus-remote‘ command, etc.
For more commands and options use *man cmus* in a terminal or read the following reference page.
man cmus
The above is the detailed content of cmus - A Fast & Lightweight Console Music Player for Linux. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undress AI Tool
Undress images for free

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

LXD is described as the next-generation container and virtual machine manager that offers an immersive for Linux systems running inside containers or as virtual machines. It provides images for an inordinate number of Linux distributions with support

Clear Linux OS is the ideal operating system for people – ahem system admins – who want to have a minimal, secure, and reliable Linux distribution. It is optimized for the Intel architecture, which means that running Clear Linux OS on AMD sys

The key steps for creating a self-signed SSL certificate are as follows: 1. Generate the private key, use the command opensslgenrsa-outselfsigned.key2048 to generate a 2048-bit RSA private key file, optional parameter -aes256 to achieve password protection; 2. Create a certificate request (CSR), run opensslreq-new-keyselfsigned.key-outselfsigned.csr and fill in the relevant information, especially the "CommonName" field; 3. Generate the certificate by self-signed, and use opensslx509-req-days365-inselfsigned.csr-signk

Firefox browser is the default browser for most modern Linux distributions such as Ubuntu, Mint, and Fedora. Initially, its performance might be impressive, however, with the passage of time, you might notice that your browser is not as fast and resp

Decompress the .zip file on Windows, you can right-click to select "Extract All", while the .tar.gz file needs to use tools such as 7-Zip or WinRAR; on macOS and Linux, the .zip file can be double-clicked or unzip commanded, and the .tar.gz file can be decompressed by tar command or double-clicked directly. The specific steps are: 1. Windows processing.zip file: right-click → "Extract All"; 2. Windows processing.tar.gz file: Install third-party tools → right-click to decompress; 3. macOS/Linux processing.zip file: double-click or run unzipfilename.zip; 4. macOS/Linux processing.tar

When encountering DNS problems, first check the /etc/resolv.conf file to see if the correct nameserver is configured; secondly, you can manually add public DNS such as 8.8.8.8 for testing; then use nslookup and dig commands to verify whether DNS resolution is normal. If these tools are not installed, you can first install the dnsutils or bind-utils package; then check the systemd-resolved service status and configuration file /etc/systemd/resolved.conf, and set DNS and FallbackDNS as needed and restart the service; finally check the network interface status and firewall rules, confirm that port 53 is not

As a system administrator, you may find yourself (today or in the future) working in an environment where Windows and Linux coexist. It is no secret that some big companies prefer (or have to) run some of their production services in Windows boxes an

If you find that the server is running slowly or the memory usage is too high, you should check the cause before operating. First, you need to check the system resource usage, use top, htop, free-h, iostat, ss-antp and other commands to check CPU, memory, disk I/O and network connections; secondly, analyze specific process problems, and track the behavior of high-occupancy processes through tools such as ps, jstack, strace; then check logs and monitoring data, view OOM records, exception requests, slow queries and other clues; finally, targeted processing is carried out based on common reasons such as memory leaks, connection pool exhaustion, cache failure storms, and timing task conflicts, optimize code logic, set up a timeout retry mechanism, add current limit fuses, and regularly pressure measurement and evaluation resources.
