Sunday, September 21, 2014

Listen to music without leaving terminal

GNU/Linux is all about terminal, you can do almost everything without leaving terminal prompt. Here's an awesome way of listening to music without the support of a GUI.

Install xmms2, previously it was xmms which is a gui light weight mp3 player. Now it's totally cli based.

# apt-get install xmms2

Find your music and add to the playlist

# xmms2 add track1.mp3

Add as much as you want and list what you have added

# xmms2 list

Now it's time to play.

# xmms2 play

This will run as background process so if you want to stop, execute

# xmms2 stop

If you want to remove a song from the playlist

# xmms2 remove <playlist number>
hint: list the playlist to see the exact number

use manual pages for more commands and operations.

# man xmms2

enjoy !!!