cdeject [-[0..9]|-d device] [-V|-?|-h] cdclose [-[0..9]|-d device] [-V|-?|-h] cdir -n [-[0..9]|-d device] [-r|-s|-t|-V|-?|-h] cdinfo [-[0..9]|-d device] [-a|-r|-s|-t|-v|-V|-?|-h] cdpause [-[0..9]|-d device] [-V|-?|-h] cdplay [-[0..9]|-d device] [start [stop] cdplay [-[0..9]|-d device] [+|- number] cdplay [-[0..9]|-d device] [start|stop|resume|eject|close|info|dir] cdplay [-[0..9]|-d device] [-V|-?|-h] cdstop [-[0..9]|-d device] [-V|-?|-h] cdvolume [-[0..9]|-d device] [-V|-?|-h|level] cdshuffle [-[0..9]|-d device] [-V|-?|-h]
The cdclose command closes the CDROM tray.
The cdir command lists information about the currently loaded audio compact disc. In particular, it lists the lengths of all tracks. It also references the database files specified in the CDTOOLPATHDB environment variable and the ~/.cdtooldb file, which use a simplified version of the format used by workman(1). If one of these files contains an entry for the current compact disc, cdir will print title, artist, and track name information.
The cdinfo command, with no option used, will print out the audiostatus (playing, etc.).
The cdpause command pauses the currently playing compact disc. Resume by using cdplay with no arguments.
The cdplay command plays the compact disc. If called with one argument, this is the starting track number. If called with two arguments, these are the starting and stopping track numbers. If the first argument is a + or - then skip the number of tracks given by the second argument forward or backward. If no second argument is give, skip one. A 0 as first argument or no argument replays current track.
The cdstop command stops the compact disc, if it is playing.
The cdvolume command sets the output volume level of the CD player. The level is an integer from 0 to 255.
The cdshuffle command plays the audio tracks on the disc in random order.
The default device opened is /dev/cdrom. This default and others may be changed in config.h. Options supported by all programs are:
CDTOOLDEV - device file for cd-rom, overrides compile-time defaults.