• 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

Use Locate Command To Find File In Linux Terminal By Name

How To Change Terminal Color In Ubuntu Command Line

How To Run Fsck Manually In Linux To Fix Unexpected Inconsistency

How To Fix Broken Packages On Ubuntu From Terminal

Re Execute The Previous Command In Linux Ubuntu Command Line

How Much RAM Is Needed For Ubuntu PC

How To Find Large Files And Directories In Linux Command Line

How To Use Clear Command History In Linux Terminal

Linux Command To Check RAM Size In Ubuntu Terminal In GB

How To Install Proprietary Drivers In Linux Ubuntu Using Terminal

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

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