beep
TLDR
Play a beep
SYNOPSIS
beep [options]
DESCRIPTION
beep uses the PC speaker to produce tones of specified frequency and duration. It can play simple melodies, alert sounds, or serve as an audio notification in scripts.
Multiple tones can be sequenced using the -n (new) option to separate distinct beeps. This allows creating simple musical sequences or multi-tone alerts.
PARAMETERS
-f frequency
Frequency in Hertz (default: 440 Hz, concert A)-l duration
Duration in milliseconds (default: 200 ms)-r count
Number of repetitions-d delay
Delay between repetitions in milliseconds-n, --new
Start a new beep (use for sequences)-D delay
Delay between new beeps in milliseconds
CAVEATS
Requires access to the PC speaker device (/dev/input/by-path/platform-pcspkr-event-spkr or similar). May require root privileges or appropriate group membership. Not all systems have a functional PC speaker.
HISTORY
beep was created by Johnathan Nightingale and has been a staple of Linux audio notifications since the early 2000s. It provides a lightweight way to produce sounds without requiring audio subsystems.
SEE ALSO
speaker-test(1), aplay(1), play(1)


