The command line in Linux is probably one of the scariest experience for a newcomer there is. I remember spending hours back in the day trying to decode an error message in my terminal. However, it was completely worth it. If I had to pick only one reason for a newcomer to learn to deal with the command line properly today, it would probably be for the possibility to manage a music library entirely from the terminal. The software I prefer to do this is cmus, short for “C* MUsic Player” as it is written entirely in C.
cmus is a powerful music file manager with a built-in audio player. Using its ncurses based terminal interface, you can browse your music library, and play music from playlists or queues, all from the command line.
Install cmus on pcDuino Ubuntu
First, you will need to set up and install cmus as follows.
$ sudo apt-get install cmus
Import Music Files to cmus
The first thing to do is to import your music files into your library. This process will immediately reveal two things: that the shortcuts are inspired by vim‘s, and that cmus is incredibly fast. I have successfully imported over a thousand songs in less than twenty seconds! Try that with iTunes or any graphical music library software, and you will have time to make a peanut butter sandwich before it’s done.
To import music files on cmus, type the following vim-like command on cmus.
:a /path/to/your/music/folder //such as :a /home/ubuntu/music/
Then all the music files in that folder appeared sorted by artist and album instantly.
cmus is very funny 🙂