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

Are you looking for good software to write mathematical equations? If so, this article provides the top 5 equation editors that you can easily install on your favorite Linux distribution.In addition to being compatible with different types of mathema

Linux administrators should be familiar with the command-line environment. Since GUI (Graphical User Interface) mode in Linux servers is not commonly installed.SSH may be the most popular protocol to enable Linux administrators to manage the servers

Gogo is a remarkable tool to bookmark directories inside your Linux shell. It helps you create shortcuts for long and complex paths in Linux. This way, you no longer need to type or memorize lengthy paths on Linux.For example, if there's a directory

PPA is an important tool for Ubuntu users to expand their software sources. 1. When searching for PPA, you should visit Launchpad.net, confirm the official PPA in the project official website or document, and read the description and user comments to ensure its security and maintenance status; 2. Add PPA to use the terminal command sudoadd-apt-repositoryppa:/, and then run sudoaptupdate to update the package list; 3. Manage PPAs to view the added list through the grep command, use the --remove parameter to remove or manually delete the .list file to avoid problems caused by incompatibility or stopping updates; 4. Use PPA to weigh the necessity and prioritize the situations that the official does not provide or require a new version of the software.

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

How to quickly generate test files of a specified size? It can be achieved using command line tools or graphical software. On Windows, you can use fsutilfilecreatenew file name size to generate a file with a specified byte; macOS/Linux can use ddif=/dev/zeroof=filebs=1Mcount=100 to generate real data files, or use truncate-s100M files to quickly create sparse files. If you are not familiar with the command line, you can choose FSUtilGUI, DummyFileGenerator and other tool software. Notes include: pay attention to file system limitations (such as FAT32 file size upper limit), avoid overwriting existing files, and some programs may

The key to installing dual systems in Linux and Windows is partitioning and boot settings. 1. Preparation includes backing up data and compressing existing partitions to make space; 2. Use Ventoy or Rufus to make Linux boot USB disk, recommend Ubuntu; 3. Select "Coexist with other systems" or manually partition during installation (/at least 20GB, /home remaining space, swap optional); 4. Check the installation of third-party drivers to avoid hardware problems; 5. If you do not enter the Grub boot menu after installation, you can use boot-repair to repair the boot or adjust the BIOS startup sequence. As long as the steps are clear and the operation is done properly, the whole process is not complicated.

Node Version Manager (NVM) is a simple bash script that helps manage multiple Node.js versions on your Linux system. It enables you to install various Node.js versions, view available versions for installation, and check already installed versions.NV
