Command to play audio in linux

 Hemant Devrani -

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 replies

hye to open music file on command type:

play my_file.mp3

to know more:
Thank you

A few words of thanks would be greatly appreciated. Add comment

CCM 2821 users have said thank you to us this month

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 )

Registration date
Friday July 31, 2009
Last seen
August 7, 2009
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 :)