• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

beep: command not found

by admin

beep is a command-line tool in Linux that is used to emit a beep sound from the speaker of a computer. It is typically used as a notification or an alert in shell scripts or other command-line programs.

beep supports a variety of command-line options that allow you to customize the beep sound, such as the pitch, the duration, or the number of times the beep should be repeated. You can use these options to fine-tune the beep sound to suit your needs.

For example, to emit a beep sound with a pitch of 2000 Hz and a duration of 100 milliseconds, you could use the following command:

# beep -f 2000 -l 100

To emit a beep sound that is repeated 3 times, with a pitch of 1000 Hz and a duration of 200 milliseconds, you could use the following command:

# beep -f 1000 -l 200 -r 3

If you encounter the below error while running the beep command:

beep: command not found

you may try installing the below package as per your choice of distribution:

Distribution Command
Debian apt-get install beep
Ubuntu apt-get install beep
Alpine apk add beep
Arch Linux pacman -S beep
Kali Linux apt-get install beep
Fedora dnf install beep
Raspbian apt-get install beep

beep Command Examples

1. Play a beep:

# beep

2. Play a beep that repeats:

# beep -r repetitions

3. Play a beep at a specified frequency (Hz) and duration (milliseconds):

# beep -f frequency -l duration

4. Play each new frequency and duration as a distinct beep:

# beep -f frequency -l duration -n -f frequency -l duration

5. Play the C major scale:

# beep -f 262 -n -f 294 -n -f 330 -n -f 349 -n -f 392 -n -f 440 -n -f 494 -n -f 523

Filed Under: Linux

Some more articles you might also be interested in …

  1. apt-mark Command Examples in Linux
  2. lrztar Command Examples in Linux
  3. Maintaining Linux filesystems using “fsck” and “tune2fs”
  4. ‘lxc_cgfs – Device or resource busy – failed to set memory.use_hierarchy to 1; continuing’ – error while starting LXC container
  5. How To Migrate Existing Iptables rules to Nftables In CentOS/RHEL 8
  6. Manage ASM Audit Files with syslog – configure lograte and auditing
  7. nmcli agent Command Examples in Linux
  8. minicom Command Examples in Linux
  9. Slow SSH login due to unreachable rsyslog server
  10. bspc Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • protonvpn-cli Command Examples in Linux
  • protonvpn-cli connect Command Examples
  • procs Command Examples in Linux
  • prlimit: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright