• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

mocp Command Examples in Linux

by Deepika

“mocp” (Music on Console Player) is a text-based audio player for Linux and Unix-like systems. It is a console application that allows you to play audio files from the command line, without the need for a graphical user interface.

“mocp” supports a wide range of audio formats, including MP3, Ogg Vorbis, FLAC, and others. It also provides several features, including playlists, repeat and shuffle modes, equalizer, and others. The player has a simple, straightforward interface, making it easy to navigate and control playback.

The “mocp” command can be used to start the player, play audio files, and control playback. For example, you can use the “mocp” command to start the player, play an audio file, pause playback, skip to the next or previous track, and adjust the volume. The player also provides several command line options and configuration files, allowing you to customize the player’s behavior and appearance.

“mocp” is a popular choice for Linux users who prefer a text-based audio player, or for users who use the command line frequently. It is highly configurable and provides a flexible, efficient, and user-friendly audio player experience.

mocp Command Examples

1. Launch the MOC terminal UI:

# mocp

2. Launch the MOC terminal UI in a specific directory:

# mocp path/to/directory

3. Start the MOC server in the background, without launching the MOC terminal UI:

# mocp --server

4. Add a specific song to the play queue while MOC is in the background:

# mocp --enqueue path/to/audio_file

5. Add songs recursively to the play queue while MOC is in the background:

# mocp --append path/to/directory

6. Clear the play queue while MOC is in the background:

# mocp --clear

7. Play or stop the currently queued song while MOC is in the background:

# mocp --play|stop

8. Stop the MOC server while it’s in the background:

# mocp --exit

Filed Under: Linux

Some more articles you might also be interested in …

  1. Understanding OS load average and run queue/blocked queue in terms of CPU utilization in Linux
  2. How To Identify User Deleting Files From A Given Directory in Linux
  3. agate – A simple server for the Gemini network protocol (Command Examples)
  4. guix package Command Examples in Linux
  5. mv: command not found
  6. check-support-status: Command Examples in Linux
  7. git checkout-index: Copy files from the index to the working tree
  8. Command ‘df -i’ Shows ‘Inode=0’ on BTRFS File System
  9. aspell: command not found
  10. sensible-editor Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • glab Command Examples
  • “glab repo” Command Examples
  • “glab release” Command Examples
  • “glab pipeline” Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright