To play an audio CD using the Linux command line, you can use the mplayer
utility. mplayer
is a versatile media player that can play a wide range of audio and video file formats, as well as CDs and DVDs.
To play an audio CD using mplayer
, you will need to specify the CD drive as the source of the media. On most systems, the CD drive is typically accessed as /dev/cdrom
. You can use the following command to play an audio CD:
mplayer cdda://
Alternatively, you can specify the CD drive explicitly as follows:
mplayer cdda:///dev/cdrom
mplayer
will start playing the audio CD from the beginning and continue until the end. You can use the following keys to control playback:
p
: Pause/unpause playback<
and >
: Skip to the previous/next track[
and ]
: Decrease/increase the volumeq
: Quit mplayer
You can also use the -track
option to specify a specific track to play. For example:
mplayer cdda:///dev/cdrom -track 3
This will play track 3 of the audio CD.
Keep in mind that mplayer
is just one of many media players available for Linux. You can also use other command line utilities such as mpg123
, ogg123
, or aplay
to play audio CDs at the command line.