Forrest logo
back to the wodim tool

wodim:tldr:3cfda

wodim: Record ("burn") an audio-only disc.
$ wodim dev=/dev/${optical_drive} -audio ${track*-cdaudio}
try on your machine

This command is used to burn audio tracks onto a CD using the wodim command-line tool.

Let's break down the command step by step:

  1. wodim: This is the command-line tool used to burn CDs and DVDs in Linux.
  2. dev=/dev/${optical_drive}: This option specifies the device to which the CD will be burned. /dev/${optical_drive} represents the path of the optical drive's device file. ${optical_drive} is a placeholder that should be replaced with the actual name of the optical drive device file, such as /dev/cdrom or /dev/sr0.
  3. -audio: This option indicates that the tracks to be burned are audio tracks.
  4. ${track*-cdaudio}: This represents a placeholder for specifying the audio tracks to be burned. ${track} is another placeholder that should be replaced with the number(s) of the audio track(s) to be burned. The * symbol is used for specifying multiple tracks, and -cdaudio is added after the track number(s) to indicate that they should be burned as audio tracks.

So, for example, if you have an audio CD with tracks 1, 3, and 7 that you want to burn onto a disc in the /dev/cdrom drive, you would replace the placeholders with the appropriate values:

wodim dev=/dev/cdrom -audio 1-cdaudio 3-cdaudio 7-cdaudio

This command would then burn the specified audio tracks onto the CD.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the wodim tool