How Do You Use Sleep Command in Unix?
Contents

/bin/sleep is Linux or Unix command to delay for a specified amount of time. You can suspend the calling shell script for a specified time. For example, pause for 10 seconds or stop execution for 2 mintues. In other words, the sleep command pauses the execution on the next shell command for a given time.

What does sleep do in Unix?

In computing, sleep is a command in Unix, Unix-like and other operating systems that suspends program execution for a specified time.

How do I put Linux to sleep?

Linux: Command to Shutdown / Restart / Sleep

  1. Shutdown: shutdown -P 0.
  2. Restart: shutdown -r 0.
Alexander Ross

Alexander Ross

Gaming, Esports & Interactive Media Writer

Alexander Ross has covered the video game industry for a decade, writing deep dives on game design, esports tournaments, VR developments, and gaming culture.

Share this article
Twitter Facebook Pinterest