CDCONTROL(1)
๐ฟ CDCONTROL(1) โ your CD drive's new bestie ๐ฟ
okay so first things first: this is a page from the General Commands Manual (yes, the big book of Unix tools), and today's main character is cdcontrol, the compact disc control utility. Let's get into it ๐
โจ NAME โจ
cdcontrol โ the compact disc control utility. that's it, that's the vibe. she controls your CD. ๐
๐ธ SYNOPSIS ๐ธ
cdcontrol [-sv] [-f device] [command ...]
๐ DESCRIPTION ๐
cdcontrol is a whole program for controlling the audio features of a CD drive. the device is a name like cd0, bestie. ๐ฆ
if you don't give her any command at all, she drops into interactive mode and just reads commands from standard input. no cap, she'll sit there and wait for you. ๐
here are the options she takes:
-sโ silent mode. she will not print table headers or those human readable comments. quiet queen. ๐คซ-vโ verbose mode. she prints as much information as humanly possible. she's an oversharer and we love her for it. ๐ญ-fdevice โ pick a device, like/dev/cd0. both an absolute path and a filename relative to/devare fine. this option overridesCDROM. and if neitherCDROMnor-fis around? she tries opening first/dev/cdrom, then/dev/cd0. she's got a whole priority list, iykyk. ๐
๐ the commands, aka the whole menu ๐
the commands are listed below, and here's the cute part: you only need to type as many characters as are required to uniquely identify a command. so like, be lazy, it's fine, it's encouraged. โจ
also: the word play can be omitted entirely, and the characters + and - can be used in the place of next and prev. shortcuts, periodt. ๐ฅ
playfirst_track [last_track] โ play from track first_track to track last_track. the first track has number 1. can be omitted in all cases. ๐ตplaystart_m:start_s.start_f [end_m:end_s.end_f] โ play from the absolute address (MSF) defined by start_m in minutes, start_s in seconds and start_f (frame number), to the absolute address defined by end_m in minutes, end_s in seconds and end_f (frame number). the ranges are minutes 0-99, seconds 0-59, frame numbers 0-74. get those numbers right, bestie, the ranges are not vibes. ๐play[#start_block [length]] โ play starting from the logical block start_block, using length logical blocks. block girlie. ๐งnext[tracks] โ skip forward a number of tracks (default 1). we're moving. โญ๏ธprev[tracks] โ skip backward a number of tracks (default 1). we're going back. โฎ๏ธpauseโ stop playing. do not stop the disc. she's just resting, not quitting. ๐resumeโ resume playing. used after thepausecommand. the comeback arc. ๐ฆstopโ stop the disc. for real this time. ๐ejectโ eject the disc. bye bestie ๐closeโ inject the disc. welcome back bestie ๐ซถvolumeโ same as thestatus volumecommand. โญvolumelevel โ set the volume of both channels to level. allowed values are in the range 0-255. ๐volumeleft_channel right_channel โ set the volume of the left channel to left_channel and the volume of the right channel to right_channel. allowed values are in the range 0-255. stereo balance, iconic. ๐งvolume muteโ turn the sound off. silence era. ๐คซvolume monoโ set the mono mode. ๐ธvolume stereoโ set the stereo mode. ๐volume leftโ play the left subtrack on both left and right channels. ๐volume rightโ play the right subtrack on both left and right channels. ๐infoโ print the table of contents. the receipts. ๐status[audio | media | volume] โ print the information about the disc:audioโ the current playing status and position ๐ถmediaโ the current media catalog status ๐ฟvolumeโ the current values of the volume for left and right channels ๐
cdidโ display the serial number of the CD using the method used by the CDDB project (http://www.cddb.org/). she's got the CD's ID, fr fr. ๐ชชhelpโ print the list of available commands. when in doubt, ask. ๐debug onโ enable the debugging mode of the CD device driver. ๐debug offโ disable the driver debugging mode. ๐resetโ perform the hardware reset of the device. hard reset, no soft launch. ๐ฅset msfโ set minute-second-frame ioctl mode (default). โฑ๏ธset lbaโ set LBA ioctl mode. โฑ๏ธspeeds โ set the highest speed that the drive should use for reading data. the units are multiples of a single speed CDROM (150 KB/s). specifymaxto use the drive's fastest speed. zoom zoom. ๐๏ธquitโ quit the program. goodbye, you ate. ๐ (also: empty backticks in the original, but the command is justquitโ no args, no notes.)
๐ฟ ENVIRONMENT ๐ฟ
these environment variables affect how cdcontrol runs:
CDROMโ the CD device to use, if one isn't specified with the-foption. ๐ฏCDPLAY,CD_DRIVE,DISC,MUSIC_CDโ these variables have been deprecated in favour ofCDROM. they're the old era, we don't stan them anymore, but they're still listed. ๐
๐ FILES ๐
/dev/cd0
๐ฆ HISTORY ๐ฆ
the cdcontrol command appeared in FreeBSD 2.1. vintage. she's been serving since the 90s. ๐
๐ AUTHORS ๐
- Jean-Marc Zucconi
- Andrey A. Chernov
- Serge V. Vakulenko
okay that's the whole page, bestie, you're officially a CD girlie now ๐ฟโจ
sign-off cuteness: this one's the Debian build, dated August 25, 2016 โ so when you see it in the wild, that's the source/version footer talking. mwah ๐
๐ฆ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms