sleep
process managementLinux/Unix
The sleep command is one of the most frequently used commands in Linux/Unix-like operating systems. sleep Delay for a specified amount of time
Quick Reference
Command Name:
sleep
Category:
process management
Platform:
Linux/Unix
Basic Usage:
sleep [options] [arguments]
Common Use Cases
Syntax
sleep number[suffix]...
Options
Suffix | Description |
---|---|
s |
Seconds (default if no suffix is specified) |
m |
Minutes |
h |
Hours |
d |
Days |
Option | Description |
---|---|
--help |
Display a help message and exit |
--version |
Output version information and exit |
Examples
How to Use These Examples
The examples below show common ways to use the sleep
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
# Basic Examples Basic
sleep 5