Command to play audio in linux

sravs - Jun 20, 2009 at 11:07 AM
 Hemant Devrani - Jun 2, 2011 at 04:13 PM

I have real player installed in my linux.
i prefer listening to songs through command mode
what are the commands to play an mp3 type audio file in linux

3 responses

Blocked Profile
Jun 20, 2009 at 11:24 AM
hye to open music file on command type:

play my_file.mp3

to know more:
Hemant Devrani
Jun 2, 2011 at 04:13 PM
There are various music related commands in LINUX of which many of us are not aware.
Anyways I'll share some of those with you:

mpg123 songfile.mp3 # plays mp3 file

play sonfile.wav # plays wave file.

Note it may generate an error if the appropriate package is not installed.

sudo apt-get install mpg321 # installs the package

Now the file can be played (If playable )

Tom6 Posts 142 Registration date Friday July 31, 2009 Status Member Last seen August 7, 2009 16
Aug 6, 2009 at 11:41 AM
Hi :)

This forum should be able to help
as it deals with a huge range of different versions of linux but is dedicated to linux support.

I tried looking up the RedHat User Support Forums but this was the best I could find right now
Hopefully you can navigate to specifically RedHat support for this from there. I also found some documentation to look through
Good luck with this though!

Regards from
Tom :)