The terminal is usually used to accomplish administrative tasks on a Linux system such as installing packages, configuring services, updating, and upgrading packages to mention a few.
But did you also know you can enjoy playing your favourite audio files straight from the terminal? Yes, you can, thanks to some cool and innovative console-based music players.
In this guide, we shine the spotlight on the best command-line music players for Linux.
1. CMUS – Console Music Player
Written in C programming language, CMUS is a lightweight yet powerful console-based music player designed for Unix/Linux systems. It supports a wide range of audio formats and is quite easy to navigate once you have mastered some basic commands.
Let’s take a look at some of the main features in brief:
- Support for an array of popular music formats including mp3, aac, wave, and flac to mention a few.
- Output sound in ALSA and JACK format.
- Ability to organize your music in playlists and create queues for your songs. With CMUS, you can also create your custom music library.
- Plenty of keyboard shortcuts that you can use to make your user experience fun.
- Support for gapless playback that lets you play music without interruption.
- You can find extensions and other handy scripts from CMUS’s wiki.
Install CMUS on Linux
$ 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>]
2. MOC – Music On Console
Short for Music On Console, MOC is a light and easy-to-use command-line music player that allows you to select a directory and play audio files contained in the directory beginning with the first on the list.
Let’s take a look at some of the key features:
- Support for gapless playback.
- Support for audio files such as wav, mp3, mp4, flac, oog, aac, and MIDI.
- User defined-keys or keyboard shortcuts.
- ALSA, JACK & OSS audio output.
- A collection of customizable color themes.
Install MOC on Linux
$ sudo apt install moc [On <strong>Debian, Ubuntu and Mint</strong>] $ sudo yum install moc [On <strong>RHEL/CentOS/Fedora</strong> and <strong>Rocky/AlmaLinux</strong>] $ sudo emerge -a sys-apps/moc [On <strong>Gentoo Linux</strong>] $ sudo apk add moc [On <strong>Alpine Linux</strong>] $ sudo pacman -S moc [On <strong>Arch Linux</strong>] $ sudo zypper install moc [On <strong>OpenSUSE</strong>]
3. Musikcube
Musikcube is another free and open-source terminal-based music player that leverages a collection of plugins written in C to provide functionality such as data streaming, digital signal processing, output handling and so much more.
Musikcube is a cross-platform music player that can even run on Raspberry Pi. It uses the SQLite database for storing playlists and tracking metadata. It runs purely on a text-based UI built with ncurses.
Let’s take a look at some of the key features:
- Can deliver an output of 24bit/192k audio with ease.
- The music player offers both playlists and play queue management.
- Can act as a streaming audio client on a headless server.
- Support for libraries with over 100,000 tracks.
- It provides gapless playback with a cross-fading effect along with index tagging.
For installation, head over to the releases page and grab the .deb
or .rpm
for your version of Linux and install it using the installation guide to get up and running.
4. mpg123 – Audio Player and Decoder
The mpg123 player is a free and open-source fast console-based audio player and decoder written in C language. It is tailored for both Windows & Unix/Linux systems.
Let’s take a look at some of the key features:
- Gapless playback of mp3 audio files.
- Built-in terminal shortcuts.
- Supports many platforms ( Windows, Linux, BSD, and macOS ).
- Multiple Audio options.
- Support a vast variety of audio output including ALSA, JACK, and OSS.
Install mpg123 on Linux
$ sudo apt install mpg123 [On <strong>Debian, Ubuntu and Mint</strong>] $ sudo yum install mpg123 [On <strong>RHEL/CentOS/Fedora</strong> and <strong>Rocky/AlmaLinux</strong>] $ sudo emerge -a sys-apps/mpg123 [On <strong>Gentoo Linux</strong>] $ sudo apk add mpg123 [On <strong>Alpine Linux</strong>] $ sudo pacman -S mpg123 [On <strong>Arch Linux</strong>] $ sudo zypper install mpg123 [On <strong>OpenSUSE</strong>]
5. Mp3blaster – Audio Player for Console
Mp3blaster has been around since 1997. Sadly it hasn’t been in active development since 2017. Nevertheless, it’s still a decent terminal-based audio player that lets you enjoy your audio tracks. You can find the official repo hosted on GitHub.
Let’s take a look at some of the key features:
- Support for shortcut keys which makes it relatively easy to use.
- Commendable playlist support.
- Great sound quality.
Install Mp3blaster on Linux
$ sudo apt install mp3blaster [On <strong>Debian, Ubuntu and Mint</strong>] $ sudo yum install mp3blaster [On <strong>RHEL/CentOS/Fedora</strong> and <strong>Rocky/AlmaLinux</strong>] $ sudo emerge -a sys-apps/mp3blaster [On <strong>Gentoo Linux</strong>] $ sudo apk add mp3blaster [On <strong>Alpine Linux</strong>] $ sudo pacman -S mp3blaster [On <strong>Arch Linux</strong>] $ sudo zypper install mp3blaster [On <strong>OpenSUSE</strong>]
6. Cue Music Player
Cue is a tiny open-source command-line music player for Linux, which was created by Ravachol. It searches your music library for the words you’ve provided, creates a playlist, plays the music, and prints out the album cover in ANSI/ASCII in the terminal.
Here are some of the features of cue:
- Searches your music library for the words you’ve provided.
- Creates a playlist of the matching songs.
- Plays the music in the playlist.
- Prints out the album cover in ANSI/ASCII in the terminal.
- Supports a variety of audio formats, including MP3, FLAC, and WAV.
- Can be controlled with keyboard shortcuts.
To install cue, you need to use the following installer script using the curl command as shown.
$ sudo bash -c "curl https://raw.githubusercontent.com/ravachol/cue/main/install.sh | bash"
That was a round-up of some of the most popular command-line players available for Linux, and even for Windows. Is there any you feel we have left out? Give us a shout.
The above is the detailed content of The 6 Best Command Line Music Players 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

While writing program files or normal text files, programmers and writers sometimes want to know the difference between two files or two versions of the same file. When you compare two computer files on Linux, the difference between their contents is

There are three ways to create empty files in the command line: First, the simplest and safest use of the touch command, which is suitable for debugging scripts or placeholder files; Second, it is quickly created through > redirection but will clear existing content, which is suitable for initializing log files; Third, use echo"> file name to create a file with an empty string, or use echo-n""> file name to avoid line breaks. These three methods have their own applicable scenarios, and choosing the right method can help you complete the task more efficiently.

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

Eclipse is a free integrated development environment (IDE) that programmers around the world use to write software, primarily in Java, but also in other major programming languages using Eclipse plugins.The latest release of Eclipse IDE 2023?06 does

dutree is a free, open-source, fast command-line tool for analyzing disk usage, written in the Rust programming language. It was created by combining durep (disk usage reporter) and tree (list directory content in tree-like format) command-line tools

ifconfig in short “interface configuration” utility for system/network administration in Unix/Linux operating systems to configure, manage, and query network interface parameters via command-line interface or in a system configuration scripts

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

Linux has a rich collection of commands, and while many of them are powerful and useful for various tasks, there are also some funny and whimsical commands that you can try out for amusement. 1. sl Command (Steam Locomotive) You might be aware of the
