Wake up to your favorite music
50 macOS Tips and Tricks for Using Terminal (That Last One is CRAZY!)
If you always leave your computer on and are looking for a fun way to wake up in the morning, it’s easy. All you need is your regular music player and the ‘sleep’ command. The ‘sleep’ command is a built-in tool (at least in Ubuntu) that allows you to set a timer for any amount of time (seconds, minutes, hours, and days). If we associate the ‘sleep’ command with our favorite music player and song, we can set an alarm that will wake us up after a certain amount of time. Here’s how it works.
First, open your Terminal.
Once the Terminal is open, let's take a look at how the 'sleep' command works. It's very simple. To sleep for 10 seconds, use this command: