How do I play music from the terminal?

I think the default installation has no way to play audio files from command line, other than using aplay on WAV files (aplay also support other formats, but the man page is not clear in this regard).

To play, for example, MP3 files, you need restricted codecs available through ubuntu-restricted-extras, and a player like mplayer or cvlc, but there are many other: see What Media Players Are there? where text based and GUI based audio players are listed.


There are players such as cmus, mpg321, ogg123, etc.

enter image description here


There are several text based Media Players which play in the Terminal, which are not mentioned in "What Media Players Are There?" ---but they will all involve some download.

(You do say "It would be better to do it without installing extra packages" but you do not say it is a definite no-no)

Have a look at http://kmandla.wikispaces.com/search/view/music.

Worthy of special mention are moc and cmus.

Tags:

Command Line