Sleep In Linux Command

[Solved] Sleep In Linux Command | Shell - Code Explorer | yomemimo.com
Question : sleep command bash

Answered by : armando-flores

sleep NUMBER[SUFFIX]	#Just use this command structure to wait/sleep
#Example:
sleep 5m	#sleeps 5 minutes
sleep 0.1	#sleeps 0.1 seconds or 100 miliseconds
#Suffixes
s - seconds (default)
m - minutes
h - hours
d - days
When no suffix is specified, it defaults to seconds.

Source : | Last Update : Tue, 15 Dec 20

Question : sleep in linux command

Answered by : busy-bird-b6877g419sh1

#!/bin/bash
echo "Waiting for 2 seconds..."
sleep 2
echo "Task Completed"

Source : | Last Update : Tue, 09 Aug 22

Question : sleep setting linux

Answered by : christian-nava

// disable sleep
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
// enable sleep
sudo systemctl unmask sleep.target suspend.target hibernate.target hybrid-sleep.target

Source : https://unix.stackexchange.com/questions/25133/ubuntu-server-continuously-goes-to-sleep | Last Update : Sat, 23 Jul 22

Answers related to sleep in linux command

Code Explorer Popular Question For Shell