How to play mp3 through linux command line.

To get the app :
You will have to make this package available about any linux distribution. Ubuntu users can find it in Software Center or from the command line with

sudo apt-get install mpg123

During installation you may get the following resolution error:

music1

Run following command in console window to solve the problem:

sudo apt-get update

After running this command, your installation will get completed and audio files are ready to run through command line.

To play mp3 file use command:

mpg123 file_name.mp3

Your are now able to listen desired song through CLI

music2

enjoy 🙂

Advertisements