Forrest logo
back to the mpc tool

mpc:tldr:d6f36

mpc: Forward or rewind the currently playing song.
$ mpc [+-]${seconds}
try on your machine

The command "mpc [+-]${seconds}" is used to control the current position within an audio or video file being played by the Music Player Daemon (MPD).

Here's how the command works:

  • "mpc" is the command itself, which stands for Music Player Daemon Client. It is used to interact with the MPD server.
  • "[+-]" is an optional symbol that specifies whether the position should be increased (+) or decreased (-).
  • "${seconds}" is the number of seconds by which the position should be modified. It can be a positive or negative integer representing the number of seconds.

For example, if you want to skip forward by 10 seconds in the currently playing file, you would use the command "mpc +10". Similarly, if you want to go back by 5 seconds, you would use "mpc -5".

This command is useful for adjusting the playback position within a file, especially when you want to quickly skip or rewind a few seconds.

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 mpc tool