The cmus command is a utility in Linux that is used to control the music player cmus (C* Music Player). cmus is a console-based music player that is designed to be lightweight and easy to use. It supports a wide range of audio file formats, including MP3, OGG, FLAC, and WAV, and can be controlled using keyboard shortcuts.
If you encounter the below error while running the command cmus:
cmus: command not found
you may try installing the below package as per your choice of distribution:
Distribution | Command |
Debian | apt-get install cmus |
Ubuntu | apt-get install cmus |
Alpine | apk add cmus |
Arch Linux | pacman -S cmus |
Kali Linux | apt-get install cmus |
OS X | brew install cmus |
Raspbian | apt-get install cmus |
cmus Command Examples
1. Open cmus into the specified directory (this will become your new working directory):
# cmus path/to/directory
2. Add file/directory to library:
# :add path/to/file_or_directory
3. Pause/unpause current song:
# c
4. Toggle shuffle mode on/off:
# s
5. Quit cmus:
# q