wait command bash 1

wait 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.

Here is what the above code is Doing:
1. It’s creating a variable called “sleep_time” and assigning it a value of 5.
2. It’s creating a variable called “sleep_time_suffix” and assigning it a value of “m”.
3. It’s creating a variable called “sleep_time_with_suffix” and assigning it a value of “5m”.
4. It’s creating a variable called “sleep_time_with_suffix_and_command” and assigning it a value of “sleep 5m”.
5. It’s executing the command “sleep 5m” and waiting for 5 minutes.

Similar Posts