Use the sleep
command.
Example:
sleep .5 # Waits 0.5 second. sleep 5 # Waits 5 seconds. sleep 5s # Waits 5 seconds. sleep 5m # Waits 5 minutes. sleep 5h # Waits 5 hours. sleep 5d # Waits 5 days.
One can also employ decimals when specifying a time unit; e.g. sleep 1.5s
Related Posts:
- In the shell, what does ” 2>&1 ” mean?
- In the shell, what does ” 2>&1 ” mean?
- How can I check if a directory exists in a Bash shell script?
- How to reload .bashrc settings without logging out and back in again?
- Which characters need to be escaped when using Bash?
- cp: missing destination file operand after
- Sorting data based on second column of a file
- Variable interpolation in the shell
- Shell script not running, command not found
- Difference between sh and Bash
- What does export PS1=”\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ ” mean in MacOS’ bash Terminal?
- How do I use a regex in a shell script?
- How to grep for case insensitive string in a file?
- Difference between wait and sleep
- How do I execute a bash script in Terminal?
- Multi-line string with extra space (preserved indentation)
- Multi-line string with extra space (preserved indentation)
- ‘\r’: command not found – .bashrc / .bash_profile [duplicate]
- ‘\r’: command not found – .bashrc / .bash_profile [duplicate]
- How can I declare and use Boolean variables in a shell script?
- How can I declare and use Boolean variables in a shell script?
- How to reload .bash_profile from the command line?
- What is the purpose of “&&” in a shell command?
- Replace one substring for another string in shell script
- How can I count all the lines of code in a directory recursively?
- How can I kill a process by name instead of PID, on Linux?
- Given two directory trees, how can I find out which files differ by content?
- What is cp: cannot stat error in Unix, I get this error when trying to copy thing from one folder to another
- Shell: How to call one shell script from another shell script?
- find: missing argument to -exec
- What is cp: cannot stat error in Unix, I get this error when trying to copy thing from one folder to another
- How to check if an environment variable exists and get its value?
- What is the difference between “#!/usr/bin/env bash” and “#!/usr/bin/bash”?
- How to convert a string to lower case in Bash?
- How do I edit $PATH (.bash_profile) on OS X?
- Create a new file in git bash
- How to specify the private SSH-key to use when executing shell command on Git?
- Speed up rsync with Simultaneous/Concurrent File Transfers?
- Multi-dimensional arrays in Bash
- What’s the meaning of the parameter -e for bash shell command line?
- How do I add a newline using printf?
- zip error – Nothing to do
- Check existence of input argument in a Bash shell script
- Associative arrays in Shell scripts
- How to split one string into multiple strings separated by at least one space in bash shell?
- Copy multiple files from one directory to another from Linux shell
- source command not found in sh shell
- Integer expression expected error in shell script
- What is the difference between double and single square brackets in bash?
- How do I get the current Unix time in milliseconds in Bash?
- How do I split a string on a delimiter in Bash?
- What is the preferred Bash shebang?
- How to compare strings in Bash
- An example of how to use getopts in bash
- OS X: equivalent of Linux’s wget
- How do I iterate over a range of numbers defined by variables in Bash?
- Echo newline in Bash prints literal \n
- An “and” operator for an “if” statement in Bash
- What does “-ne” mean in bash?
- “sed” command in bash
- What is the meaning of 2 in 2> /dev/null
- Parsing JSON with Unix tools
- How to check if a variable is set in Bash?
- mvn command not found in OSX Mavrerick
- “[ ]” vs. “[[ ]]” in Bash shell
- Cannot use mkdir in home directory: permission denied (Linux Lubuntu)
- Using find command in bash script
- Who can access a file with octal permissions “000” on Linux/UNIX?
- What is a list in Bash?
- Return value in a Bash function
- What does the line “#!/bin/sh” mean in a UNIX shell script?
- Open and write data to text file using Bash?
- How to change the output color of echo in Linux
- Delete all local git branches
- bash assign default value
- What does -z mean in Bash?
- How do I set a variable to the output of a command in Bash?
- Is there a TRY CATCH command in Bash
- Simple logical operators in Bash
- Bash if statement with multiple conditions throws an error
- Laravel PHP Command Not Found
- Getting an “ambiguous redirect” error
- Bash syntax error: unexpected end of file
- Is there a “goto” statement in bash?
- How do I automatically restart a Minecraft Spigot server in the event of a crash or /stop when using screen?
- Command to change the default home directory of a user
- Using SED with wildcard
- Display current path in terminal only
- What does “&” at the end of a linux command mean?
- “Error installing rails” because “extconf.rb failed” on Ubuntu 18.04
- Make a Bash alias that takes a parameter?
- How to ssh from within a bash script?
- Bash mkdir and subfolders
- How do I write stderr to a file while using “tee” with a pipe?
- Error when using ‘sed’ with ‘find’ command on OS X: “invalid command code .”
- How to create a UUID in bash?
- What does ‘set -e’ do, and why might it be considered dangerous?
- bash: print stderr in red color
- How to add a timestamp to bash script log?
- Standard place for user defined bash_completion.d scripts?