sleep: refresh page (#9631)

* sleep: add commands

* Add separate file for Linux tree
pull/3/head
Onkar Ruikar 2023-02-08 22:03:28 +05:30 committed by GitHub
parent f6692c871f
commit 1f028af0f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 7 deletions

View File

@ -1,16 +1,12 @@
# sleep
> 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:
`sleep {{seconds}}`
- Delay in minutes:
- Execute a specific command after 20 seconds delay:
`sleep {{minutes}}m`
- Delay in hours:
`sleep {{hours}}h`
`sleep 20 && {{command}}`

20
pages/linux/sleep.md Normal file
View File

@ -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}}`