CDTOOL(1)
โจ CDTOOL โ bestie's guide to playing and cataloging audio CDROMs ๐ฟโจ
okay so hi ๐ซถ this is the cdtool family of commands, and they do exactly what it says on the tin: play and catalog audio CDROMs on your CDROM drive(s). no cap. let's get into it.
๐ธ SYNOPSIS ๐ธ
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]
(yes bestie, that one cdplay line is missing a closing bracket. it's giving "shipped it anyway" and honestly? iconic. we keep it exactly as it is. ๐
)
๐ DESCRIPTION ๐
๐ cdeject
The cdeject command ejects the current compact disc. bye bestie, the disc is leaving the building ๐
๐ cdclose
The cdclose command closes the CDROM tray. come back inside bb, it's cold out there ๐ฅบ
๐ cdir
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. so like, it's doing the detective work for you ๐
-nโ Do not lookup any information in the database files. no snooping, we're going in blind ๐-sโ Print information in a short format: only author, title, and current track, all on one line. the TL;DR version โจ-tโ Print a template for the current cd, including title, artist, and track name information if available. If blank lines are filled in, this can be appended to the~/.cdtooldbfile. it's giving "fill in the blanks and make it official" ๐
๐ cdinfo
The cdinfo command, with no option used, will print out the audiostatus (playing, etc.). so basically it's the vibe check for your disc ๐ฎ
-aโ Print out the absolute disc time.-rโ Print out the relative track time.-sโ Print out the audiostatus.-tโ Print out the current track.-vโ All info: status track absolute relative. the whole gossip, nothing held back ๐
๐ cdpause
The cdpause command pauses the currently playing compact disc. Resume by using cdplay with no arguments. it's a lil intermission, not a breakup ๐ซถ
๐ cdplay
The cdplay command plays the compact disc. Let's break down the drama:
- 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 given, skip one. hop hop hop ๐ฐ - A
0as first argument or no argument replays current track. it's a rewind moment, we're obsessed with this song actually ๐
๐ cdstop
The cdstop command stops the compact disc, if it is playing. rude but necessary โ
๐ cdvolume
The cdvolume command sets the output volume level of the CD player. The level is an integer from 0 to 255. turn it UP, main character energy only ๐๐ฅ
๐ cdshuffle
The cdshuffle command plays the audio tracks on the disc in random order. chaos mode activated, and honestly? it ate ๐ฒ
๐ฆ devices & universal options ๐ฆ
The default device opened is /dev/cdrom. This default and others may be changed in config.h. Options supported by all programs are:
-[0..7]โ Multiple cdrom support to open/dev/scd0../dev/scd7[by default]. pick your drive, bestie ๐ข-d deviceโ Multiple cdrom support to open device by name. name-drop your hardware ๐[-h|-?]โ Print out help for the command. when you're lost and need a hand ๐ค-Vโ Print out version information and build information. the receipts ๐งพ-Dโ Enable runtime debugging. for when you're deep in the lore ๐ต๏ธ
๐ FILES ๐
~/.cdtooldbโ default database file.
๐ง ENVIRONMENT ๐ง
CDTOOLDBPATHโ colon delimited path of database files to search. It is not necessary to specify~/.cdtooldb, as this is automatically added to the end of the search path. she always shows up to the party, no invite needed ๐CDTOOLDEVโ device file for cd-rom, overrides compile-time defaults. this one overrules the original plan, periodt ๐
โญ SEE ALSO โญ
cdctrl(1), cdadd(1), cdown(1) โ go read these too, iykyk ๐
๐ AUTHORS ๐
Main code:
- Thomas Insel
<tinsel@tinsel.org>
Enhancements:
- Byron Ellacott
<rodent@homer.humbug.org.au> - Wade Hampton
<whampton@staffnet.com> - Lin Zhe Min
<ljm@ljm.wownet.net> - Sven Oliver Moll
<smol0075@rz.uni-hildesheim.de> - Daniel R. Risacher
<risacher@worldnet.att.net> - Max Vozeler
<max@hinterhof.net>
and that's the whole page bestie!! every option, every file, every env var, untouched and accounted for ๐ slay safe out there.
CDTOOL ยท 29-July-2004 ยท CDTOOL(1) โ that's the source/version and date, mwah, sign-off complete ๐โจ๐
๐ฆ where this page comes from
- debian bookworm: cdtool 2.1.8-release-8 ยท GPL-2.0-only
- debian trixie: cdtool 2.1.8-release-8 ยท GPL-2.0-only
- ubuntu jammy: cdtool 2.1.8-release-8 ยท GPL-2.0-only
- ubuntu noble: cdtool 2.1.8-release-8 ยท GPL-2.0-only
- ubuntu questing: cdtool 2.1.8-release-9
- ubuntu resolute: cdtool 2.1.8-release-9build1 ยท GPL-2.0-only
- ubuntu stonking: cdtool 2.1.8-release-9build1 ยท GPL-2.0-only
- copyright 1994 thomas insel
- copyright 1995,96 sven oliver moll
- copyright 1997, 1998 Wade Hampton and Dan Risacher
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms