![Forrest logo](/images/logo.png)
mocp
MOC (Music on Console) is a command line tool, also known as MOC Player, that allows you to play audio files from the terminal. It supports various audio formats, including MP3, Ogg Vorbis, FLAC, and many others. MOC is lightweight and requires minimal system resources, making it suitable for low-end systems or remote servers.
The tool provides a simple and intuitive interface with basic playback controls such as play, pause, stop, next, and previous. It also offers features like shuffle and repeat modes. MOC can be controlled entirely through keyboard shortcuts, which makes it convenient to use in a terminal-only environment or over SSH.
Apart from local files, MOC can access music stored on network shares or remote servers via the Internet. It has a built-in streaming client that can play audio streams from URLs or web radios. MOC supports playlists and allows you to create and manage them directly from the command line.
Furthermore, MOC has a range of customization options, allowing you to configure various aspects of the player according to your preferences. Overall, MOC is a lightweight and versatile command line audio player that offers a minimalistic yet functional music playback experience.
List of commands for mocp:
-
mocp:tldr:46b51 mocp: Clear the play queue while MOC is in the background.$ mocp --cleartry on your machineexplain this command
-
mocp:tldr:74c2c mocp: Stop the MOC server while it's in the background.$ mocp --exittry on your machineexplain this command
-
mocp:tldr:7feb9 mocp: Play or stop the currently queued song while MOC is in the background.$ mocp --${select}try on your machineexplain this command
-
mocp:tldr:801ce mocp: Launch the MOC terminal UI in a specific directory.$ mocp ${path-to-directory}try on your machineexplain this command
-
mocp:tldr:84c41 mocp: Add a specific song to the play queue while MOC is in the background.$ mocp --enqueue ${path-to-audio_file}try on your machineexplain this command
-
mocp:tldr:aa434 mocp: Add songs recursively to the play queue while MOC is in the background.$ mocp --append ${path-to-directory}try on your machineexplain this command
-
mocp:tldr:af598 mocp: Start the MOC server in the background, without launching the MOC terminal UI.$ mocp --servertry on your machineexplain this command