Forrest logo
back to the mocp tool

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 machine

The command "mocp --enqueue ${path-to-audio_file}" is used to add an audio file to the playlist of the Music On Console Player (MOC).

Here's a breakdown of each component of the command:

  • "mocp": This is the actual command to run the Music On Console Player.

  • "--enqueue": This is an option or flag provided to the "mocp" command. It instructs MOC to enqueue the specified audio file instead of immediately playing it. Enqueuing means adding the file to the existing playlist without interrupting the current playback.

  • "${path-to-audio_file}": This is a placeholder representing the path to the audio file you want to add to the playlist. You need to replace "${path-to-audio_file}" with the actual file path and name (e.g., /home/user/music/song.mp3).

In summary, by running this command and providing the path to an audio file, you are instructing MOC to add that file to the playlist for future playback without interrupting the currently playing track.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the mocp tool