diff --git a/pages/common/sleep.md b/pages/common/sleep.md index 142f5a7a9..ad0b29ec2 100644 --- a/pages/common/sleep.md +++ b/pages/common/sleep.md @@ -1,16 +1,12 @@ # sleep > Delay for a specified amount of time. -> More information: . +> More information: . - 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}}` diff --git a/pages/linux/sleep.md b/pages/linux/sleep.md new file mode 100644 index 000000000..45c67647a --- /dev/null +++ b/pages/linux/sleep.md @@ -0,0 +1,20 @@ +# sleep + +> Delay for a specified amount of time. +> More information: . + +- 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}}`