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...
First, find the pid of the running process using ps command. Then, pause it using kill -STOP
How do you sleep in Linux terminal?
So, what does the sleep command do in Linux?
- /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. …
- 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).