sleep NUMBER[SUFFIX] #Just use this command structure to wait/sleep
#Example:
sleep 5m #sleeps 5 minutes
sleep 0.1 #sleeps 0.1 seconds or 100 miliseconds
#Suffixes
s - seconds (default)
m - minutes
h - hours
d - days
When no suffix is specified, it defaults to seconds.
#!/bin/bash
echo "Waiting for 2 seconds..."
sleep 2
echo "Task Completed"
// disable sleep
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
// enable sleep
sudo systemctl unmask sleep.target suspend.target hibernate.target hybrid-sleep.target