Learn Ethical Hacking
Linux Apps

MOC – The Best Music Player for Your Linux Console

Moc - Linux Terminal Music Player
Written by Martins D. Okoi

MOC (Music On Console) is a Music player app for Linux/Unix Command Line Interface designed to be simple and robust enough to run smoothly without significantly affecting other I/O operations.

MOC performs sleekly despite system or I/O load because, according to the dev team, it

uses the output buffer in a separate thread. It provides gapelss playback because the next file to be played is reached while the current file is playing.

Top Features in MOC

You will be surprised at how efficient MOC music player is as it has:

  • An inbuilt simple equalizer
  • A mixer that you can connect to an external mixer
  • Theme options
  • Fully Customizable key mapping
  • Support for Internet streams
  • Playlist and directory search
  • Character set conversion using iconv()
  • JACK, ALSA, SNDIO, and OSS output types

What’s New in MOC 2.5.2?

RedHat RHCSA and RHCE Certification Exam Study Ebook

The latest version was released last year November and it came with a lot of performance enhancements, bug fixes, and some new features including:

  • Complete support for Sndfile formats
  • DSD format support via FFmpeg/Libav
  • OSS sound driver 24-bit support

You can check out more about the latest release here.

Using MOC Music Player

For those who not conversant with the CLI MOC, might seem tedious to use but believe me, it is not. Start it up in your terminal using

$ mocp
Moc - Linux Terminal Music Player

MOC – Linux Terminal Music Player

Use your keyboard to navigate to your music directory and hit Enter to begin playing a track. MOC will automatically play all the tracks within that directory so you have no need to create a playlist.

  Tizonia: A Command-line Music Streaming Client for Linux

However, you have the option to combine music files from various directories into a single playlist and nd even though your playlists will be automatically stored, you can decide to save them as m3u files and load them whenever you want.

Remember that MOC runs sleekly without interfering with other terminal and I/O operations? Press Q to return to your terminal window without switching off MOC and when you want to return to the MOC interface type in mocp.

MOC’s keyboard shortcuts are:
  • p – plat music
  • b – previous track
  • n – next track
  • q – hide MOC interface

See the complete list of commands by hitting "h" on your keyboard to access the help menu.

Installing MOC Music Player on Linux

Installation is stress-free because its PPA is natively supported and it runs as a plugin. To install via the terminal:

$ sudo apt-get install moc moc-ffmpeg-plugin

If you would prefer to install via .deb package or you’re interested in the source code and other formats access them here.

Is this the first time you are hearing about MOC music player? I am considering making it my default music player. How about you give it a try to see for yourself? Don’t forget to tell us about your experience in the comments section below.

Join Our Community Of 250,000+ Linux Lovers by liking us on Facebook, or follow us on Twitter, Google+ and Instagram.

If you liked this article, sign up for the fossmint newsletter for handpicked selection of stories from FossMint delivered to your inbox every day.


Top Deals

About the author

Martins D. Okoi

Martins Jr. (Dillivine) Okoi is a graduate of Computer Science with a passion for Linux and the Open Source community. He works as a Web designer & developer, technical writer, and programmer.

  • Chavoux

    I had it installed, but used it for the first time today. mplayer had been my default CLI music player for ages (and VLC on the desktop). I think moc might become my new default music player overall.

    • Well, I’m glad you got to finally test it out. MOC is my preference but I think mplayer offers more customization features, right?

      • Chavoux

        I don’t really know…. I always use it as-is.

        • Did a quick search and saw custom features or something like that. The app seems bloated, lol
          Since you’re moving to MOC I guess I don’t need to look it up any longer