beep
Quick Reference
Command Name:
beep
Category:
system utils
Platform:
linux
Basic Usage:
Common Use Cases
- 1
System alerts
Generate audio alerts for system events
- 2
Script feedback
Provide audio feedback in automated scripts
- 3
Testing audio
Test audio system functionality
- 4
User notifications
Notify users of completed tasks or errors
Syntax
beep [options]
Options
| Option | Description |
|---|---|
| -f, --frequency | Specify the frequency in Hz (default: 440Hz) |
| -l, --length | Specify the length in milliseconds (default: 200ms) |
| -r, --repetitions | Number of times to repeat the beep (default: 1) |
| -d, --delay | Delay in milliseconds between repetitions (default: 100ms) |
| -n, --new | Start a new tone specification after this option |
| -s, --server | Connect to the specified PC speaker server |
| -D, --device | Specify the device to use (default: /dev/input/by-path/platform-pcspkr-event-spkr) |
| -e, --stderr | Generate output to stderr as well as the speaker |
| -h, --help | Display help information |
| -v, --version | Output version information |
Examples
How to Use These Examples
The examples below show common ways to use the beep command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
Basic Examples:
beep
beep -f 1000 -l 500
beep -r 3 -d 100
beep -f 262 -l 200 -n -f 294 -l 200 -n -f 330 -l 200