← 返回命令列表

Linux command

moc 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Start MOC

mocp

Start server only

mocp -S

Play file

mocp -l [file.mp3]

Add to playlist

mocp -a [file.mp3]

Play/pause

mocp -G

Next track

mocp -f

Stop server

mocp -x

说明

moc (Music On Console) is a terminal audio player. It uses a client-server architecture. The tool plays in background. Supports many formats via plugins. ncurses interface.

参数

-S
Start server.
-l _FILE_
Play file.
-a _FILE_
Add to playlist.
-G
Toggle play/pause.
-f
Next track.
-x
Stop server.
--help
Display help information.

FAQ

What is the moc command used for?

moc (Music On Console) is a terminal audio player. It uses a client-server architecture. The tool plays in background. Supports many formats via plugins. ncurses interface.

How do I run a basic moc example?

Run `mocp` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -S do in moc?

Start server.