commands.sh

mocp

linux

Music on Console (MOC) audio player.

More info →

Options (5)

-S, --serverboolean

Start the MOC server in the background, without launching the MOC terminal UI

Example: mocp {{[-S|--server]}}
-q, --enqueueboolean

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

Example: mocp {{[-q|--enqueue]}} {{path/to/audio_file}}
-a, --appendboolean

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

Example: mocp {{[-a|--append]}} {{path/to/directory}}
-c, --clearboolean

Clear the play queue while MOC is in the background

Example: mocp {{[-c|--clear]}}
-x, --exitboolean

Stop the MOC server while it's in the background

Example: mocp {{[-x|--exit]}}

Examples (8)

Launch the MOC terminal UI

Launch the MOC terminal UI in a specific directory

mocp path/to/directory

Start the MOC server in the background, without launching the MOC terminal UI

mocp [-S|--server]

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

mocp [-q|--enqueue] path/to/audio_file

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

mocp [-a|--append] path/to/directory

Clear the play queue while MOC is in the background

mocp [-c|--clear]

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

mocp --play|stop

Stop the MOC server while it's in the background

mocp [-x|--exit]
made by @shridhargupta | data from tldr-pages