sleep command bash
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.
sleep setting linux
// 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
Source: unix.stackexchange.com
sleep in linux command
#!/bin/bash echo "Waiting for 2 seconds..." sleep 2 echo "Task Completed"