Play music directly from Linux Ubuntu Terminal. Install SOX 14.4.1 on Ubuntu 14.10, Ubuntu 14.04 and Derivatives. Sox (Swiss Army Knife of Sound Processing) is a command line interface music player for Linux Systems.
Install SOX 14.4.1 On Ubuntu Systems
You can install SOX 14.4.1 on Ubuntu Systems via the official PPA. Open Terminal and run the following commands to install the SOX and libsox-fmt-all packages on Ubuntu Systems:
sudo add-apt-repository ppa:skellat/flow1
sudo apt-get update
sudo apt-get install sox libsox-fmt-all
The same set of instructions can be used to install SOX 14.4.1 on Ubuntu Derivatives such as Linux Mint 17.1/17, Pinguy OS 14.04, Deepin 2014, Peppermint Five, Elementary OS 0.3 Freya, LXLE 14.04, Linux Lite 2 and others.
How to Use SOX
Once installed, you can use SOX to play music directly from Linux Ubuntu Terminal. For this, navigate to the music directory and run “ls” command to see the songs list.
cd ~/Music
ls -1
To play a song, type play song_name to play an individual song or use the command play *.mp3 to play all the mp3 files. To quit the SOX application, press Ctrl – C.