This tutorial explains Linux “sleep” command, options and its usage with examples.
`sleep’ pauses for an amount of time specified by the sum of the values of the command line arguments.
SUFFIX may be `s’ for seconds (the default), `m’ for minutes, `h’ for hours or `d’ for days. Unlike most implementations that require NUMBER be an integer, here NUMBER may be an arbitrary floating point number.
To incorporate pause for 5 seconds or 2 minutes in my bash shell script
To sleep for 5 seconds, use:
To sleep for 2 mintus, use:
sleep Command Bash Script Example
#!/bin/bash echo "Hi, I'm sleeping for 5 seconds..." sleep 5 echo "I'm awake Now."
Sanfoundry Global Education & Learning Series – 1000 Linux Tutorials.