Your Question: How Do I Sleep a Process in Linux?
Contents

First, find the pid of the running process using ps command. Then, pause it using kill -STOP , and then hibernate your system. Resume your system and resume the stopped process using command kill -CONT .

How do you sleep in Linux terminal?

So, what does the sleep command do in Linux?

  1. /bin/sleep is Linux or Unix command to delay for a specified amount of time.
  2. You can suspend the calling shell script for a specified time. …
  3. In other words, the sleep command pauses the execution on the next shell command for a given time.

How do you use sleep command?

Sleep command is used to delay for a fixed amount of time during the execution of any script. When the coder needs to pause the execution of any command for the particular purpose then this command is used with the particular time value. You can set the delay amount by seconds (s), minutes (m), hours (h) and days (d).

Sarah Jenkins

Sarah Jenkins

Senior Technology Editor & AI Specialist

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.

Share this article
Twitter Facebook Pinterest