Files
cheatsheet-tldr/tldr/linux/sleep
2025-12-08 00:21:51 +00:00

34 lines
607 B
Plaintext

---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# sleep
> Delay for a specified amount of time.
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/sleep-invocation.html>.
- Delay in seconds:
`sleep {{seconds}}`
- Delay in [m]inutes. (Other units [d]ay, [h]our, [s]econd, [inf]inity can also be used):
`sleep {{minutes}}m`
- Delay for 1 [d]ay 3 [h]ours:
`sleep 1d 3h`
- Execute a specific command after 20 [m]inutes delay:
`sleep 20m && {{command}}`
- Delay forever:
`sleep {{[inf|infinity]}}`
- Display help:
`sleep --help`