CDCTRL(1)
πΏ CDCTRL(1) β bestie's guide to command line CDROM control β¨
okay so. <rainbow>cdctrl</rainbow> is a User Commands girlie (that's the section, iykyk) and she's here to run your CD-ROM drive from the terminal. no GUI, no fuss, just vibes and spinning plastic. π
β¨ NAME β¨
cdctrl β command line CDROM control π
πΈ SYNOPSIS πΈ
cdctrl [device]
cdctrl -c [device]
cdctrl -c
cdctrl [-V|-?|-h]
π¦ DESCRIPTION π¦
so like. the cdctrl command is a program that opens a CDROM device and can be used for interactive control of the CDROM. we're talking: starting play at a track, next track, previous track, stop, pause, display info, display CDROM status, and display CDROM directory. the whole lil menu of main character moves. π
and lowkey the best part? this program may be used as a daemon to control an audio CDROM device. she can just vibe in the background and run the show. periodt.
π the commands to the cdctrl command are:
deviceβ open CDROM device.-Vβ print out version and build information.-hβ display help.-vβ display help.-Dβ enable runtime debugging.-cβ output CR-LF at end of each line, not LF.
by default, cdctrl opens /dev/cdrom, but does not start playing. (she's respectful like that. no autoplay jumpscares here π) output goes to standard output, with each line terminated by a linefeed (LF).
πΏ commands to cdctrl are:
1β play first track, start playing.sβ stop playing.pβ pause playing.rβ resume playing.eβ eject CDROM.cβ close CDROM tray.iβ display info string.dβ display directory.-β play previous track.+β play next track. when on last track, play first track.[1..99]β play track 1..99.?β display help screen.qβ quit.
each command results in one or multiple lines of output to stdout, followed by an info string, followed by END. like a little goodbye kiss on every response. π
the format of the info string is:
CMD cmd-name cd-status track abs-time rel-time
cmd-name := {play, stop, ... quit} from above list
cd-status := {invalid, play, paused}
cd-status += {completed, error, no_status}
track := {1..99} CD track
abs-time := HH:MM:SS elapsed since CD start
rel-time := HH:MM:SS elapsed since track start
π FILES π
/dev/cdromβ default cdrom device
π ENVIRONMENT π
CDTOOLDEVβ cdrom device, overrides compile time defaults
ngl, this one is the override queen. compile-time defaults said what they said, but CDTOOLDEV gets the final word. π
π§ SEE ALSO π§
π AUTHORS π
- Main code: Thomas Insel
<tinsel@tinsel.org> - Enhancements: Sven Oliver Moll
<smol0075@rz.uni-hildesheim.de> - cdctrl extensions: Wade Hampton
<whampton@staffnet.com>
and that's the whole page bestie!! π this was CDTOOL version, dated 29-July-2004 β yes she's an elder icon and she still ate. slay, stay spinny, and remember: q to quit, always. π«Άπ₯
π¦ 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 1998, Wade Hampton
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms