To play an audio CD using the Linux command line with mplayer
, you can use the following command:
mplayer cdda://
This will launch mplayer
and start playing the audio CD that is currently inserted in your CD drive. You can control playback using the standard mplayer
controls, such as p
to pause and q
to quit.
If you have multiple CD drives, you can specify the CD drive to use with the -cdrom-device
option, like this:
mplayer cdda:// -cdrom-device /dev/sr0
Replace /dev/sr0
with the device path of your CD drive. You can find the device path by running the following command:
ls /dev/sr*
This will list all CD/DVD drives on your system, and you can identify the device path of your CD drive from the list.