• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Source Digit

Source Digit

Linux, Ubuntu Tutorials & News, Technology, Gadgets & Gizmos

  • Home
  • How To
  • Ubuntu
  • Instagram
  • Blogging
  • Android
  • WordPress
  • +More
    • Cloud Computing
    • Gadgets
    • Social Media
    • Technology
  • Write for Us
Home / How To / Install MOC Command Line Music Player In Ubuntu Linux

Install MOC Command Line Music Player In Ubuntu Linux

By Sourabh / January 5, 2019 Category: How To, Ubuntu

Install MOC command line music player in Ubuntu Linux. MOC (music on console) is a console audio player for LINUX/UNIX Systems. It is designed to be powerful and easy to use. Once installed, all you have to do is select a file from some directory using the menu and MOC will start playing all files in this directory beginning from the chosen file.

The MOC supports many audio file formats including MP3, Ogg Vorbis, FLAC, Musepack, Speex, WAVE (and other less popular formats supported by Sndfile), MOD, WavPack, AAC, SID, MIDI. Moreover most audio formats recognized by FFMpeg/LibAV are also supported (e.g. MP4, Opus, WMA, APE, AC3, DTS – even embedded in video files). Please note that Internet streams (Icecast, Shoutcast) are supported and key mapping is also fully customizable.

Playing music is super easy. You don’t have to create playlists as in other players. However if you want to combine some files from one or more directories on one playlist, you can still do it. The playlist will be remembered between runs or you can save it as an m3u file and load it whenever you want.

Install MOC on Linux Ubuntu

Run the following commands in Terminal to install MOC in Ubuntu Systems:

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

Using

Once installed, open MOC from terminal using the following command:

$ mocp

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

For any help, press “h”.

If you need to use Terminal, you don’t have to stop listening to the music. Just press q and the interface will be detached leaving the server running. You can reattach it later, or you can attach one interface in the console, and another in the X terminal emulator, no need to switch just to play another file.

Tags: Command Line Music Player, Linux Commandline Music Player, Linux Console Music Player, Linux Terminal Music Player, Moc Music On Console Linux, Music Player Linux Commandline, Music Player Linux Console, Music Player Linux Terminal

Primary Sidebar

Latest Posts

Using Linux Terminal How To Get Total Disk Size In GB

Count And Find Number Of Files In A Linux Directory Using Command

Check How Many Users Are Created In Linux Ubuntu

How To Check User Permissions In Linux Using Command

Check Which Folder Is Taking More Space In Ubuntu Linux

How to Install Claude Desktop App in Ubuntu Linux

Job Scheduling Using At Command In Linux With Examples

How To Check Permissions Of A Directory In Linux Command

Delete Directory And Contents Recursively Without Prompt On Linux

Check User Login History In Ubuntu Linux Command Line

© 2026 Source Digit • Linux, Ubuntu Tutorials & News, Technology, Gadgets & Gizmos

  • Home
  • About
  • Privacy Policy
  • Terms & Conditions
  • Contact Us
  • Sitemap