How to play music from the command line

Sox is a linux library that allows to manipulate audio files. Sox has also the command play:

play -w file.wav

plays a .wav file

play -w file.wav reverse

plays a .wav file from the end to the beginning

play "filename.ogg" bass +3

plays a file and encreases the bass line

sox -m file1.wav file2.wav file1+2.wav

joins two files into one file

rec new-file.wav

records sounds into a file