mirror of https://github.com/CrimsonTome/tldr.git
parent
f6692c871f
commit
1f028af0f0
|
@ -1,16 +1,12 @@
|
||||||
# sleep
|
# sleep
|
||||||
|
|
||||||
> Delay for a specified amount of time.
|
> Delay for a specified amount of time.
|
||||||
> More information: <https://www.gnu.org/software/coreutils/sleep>.
|
> More information: <https://pubs.opengroup.org/onlinepubs/9699919799/utilities/sleep.html>.
|
||||||
|
|
||||||
- Delay in seconds:
|
- Delay in seconds:
|
||||||
|
|
||||||
`sleep {{seconds}}`
|
`sleep {{seconds}}`
|
||||||
|
|
||||||
- Delay in minutes:
|
- Execute a specific command after 20 seconds delay:
|
||||||
|
|
||||||
`sleep {{minutes}}m`
|
`sleep 20 && {{command}}`
|
||||||
|
|
||||||
- Delay in hours:
|
|
||||||
|
|
||||||
`sleep {{hours}}h`
|
|
||||||
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
# sleep
|
||||||
|
|
||||||
|
> Delay for a specified amount of time.
|
||||||
|
> More information: <https://www.gnu.org/software/coreutils/sleep>.
|
||||||
|
|
||||||
|
- 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}}`
|
Loading…
Reference in New Issue