Sponsored Links
-->

Thursday, June 14, 2018

I'm drinking lean, it help me sleep. : @trigger.tm #rotiform #kps ...
src: i.pinimg.com

sleep is a Unix command line program that suspends program execution for a specified time. The sleep instruction suspends the calling process for at least the specified number of seconds (the default), minutes, hours or days.


Video Sleep (Unix)



Usage

Where number is an integer number to indicate the time period in seconds. Some implementations support floating point numbers.

Options

None.


Maps Sleep (Unix)



Examples

Causes the current terminal session to wait 30 seconds.

Causes the current terminal session to wait 5 hours


Unix Linux Programmer Sys Admin Sexy Shell Script T-Shirt
src: ih1.redbubble.net


GNU sleep specific Examples

Wait 3 hours then play foo.mp3

Note that sleep 5h30m and sleep 5h 30m are illegal since sleep takes only one valueand unit as argument. However, sleep 5.5h (a floating point) is allowed. Consecutive executions of sleep can also be used.

Sleep 5 hours, then sleep another 30 minutes .

The GNU Project's implementation of sleep (part of coreutils) allows the user to pass an arbitrary floating point or multiple arguments, therefore sleep 5h 30m (a space separating hours and minutes is needed) will work on any system which uses GNU sleep, including Linux.

Possible uses for sleep include scheduling tasks and delaying execution to allow a process to start, or waiting until a shared network connection most likely has few users to wget a large file.


Linux is sexy: who | grep -i blonde | date; cd ~; \ unzip; touch ...
src: i.pinimg.com


See also

  • Sleep (operating system)

Unix Linux Programmer Sys Admin Sexy Shell Script T-Shirt
src: ih1.redbubble.net


References


Reviews for Wake Up Smarter Sleep With An Engineer T-Shirt
src: silkroadtees.com


External links

  • sleep - Commands & Utilities Reference, The Single UNIX Specification, Issue 7 from The Open Group

Source of article : Wikipedia