Write a shell script to set an alarm
Instructions:
Create a file and name it as script.sh
$ bash script.sh
#!/bin/bash
# This script asks the user for a time, waits the specified amount
# of time, and shows an alert dialog.
TIME=$(zenity --entry --title="Timer" --text="Enter a duration for the timer.\n\n Use 5s for 5 seconds, 10m for 10 minutes, or 2h for 2 hours.")
sleep ${TIME}
cvlc --play-and-exit Beep-sound.ogg # Alarm
zenity --info --title="Timer Complete" --text="The timer is over."