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 ~/.cdtooldb file. 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 0 as 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