Playing a beep sound on mac using terminal

I need to do something like beep 25 and there should be a beep on my Mac laptop a notification or screen flickr will be better... How could i achieve this using some command or script on terminal..
Rohit BajajAsked:
Who is Participating?
David FavorConnect With a Mentor Linux/LXD/WordPress/Hosting SavantCommented:
Unsure what a beep 25 might mean.

This will do a normal bell ring on most platforms, including Linux + OSX/Macs...

echo -ne '\007'

Open in new window

To use this in a script, just write a script using echo.

On Macs, you can also use the built in Notifications system.
hdhondtConnect With a Mentor Commented:
Here's the man page for beep:

For a 1 second beep at 1kHz, issue the command

beep -f 1000 -l 1000

If beep is not installed, you can download it from
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.