Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

sleep command bash

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.
Comment

bashrc sleep command

sleep 5s
Comment

sleep in linux command

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

bash sleep

#!/bin/bash

echo "Time Before Sleep Statement:" 
date +"%H:%M:%S"

sleep 3

echo "Time After Sleep Statement:"
date +"%H:%M:%S"
Comment

PREVIOUS NEXT
Code Example
Shell :: create gitignore files windows 
Shell :: bash wait 3 seconda 
Shell :: install emacs 
Shell :: docker run image command 
Shell :: ubuntu show line in file containing text 
Shell :: link php with php 8 mac 
Shell :: create group ubuntu 
Shell :: pm2 remove app from list 
Shell :: maven test with debug 
Shell :: how to install tensorflow on anaconda 
Shell :: windows kill process on port 
Shell :: how to clear docker-compose logs 
Shell :: install curl 
Shell :: activate conda environment in bash script 
Shell :: ssh pc without password ubuntu 
Shell :: terminal delete directory not empty 
Shell :: pinterest clone github 
Shell :: pm2 typescript 
Shell :: How to install Apache 2 in Ubuntu? 
Shell :: how to delete a commit in git remotely 
Shell :: change remote url github 
Shell :: ubuntu screenshot tool 
Shell :: revert last push to server 
Shell :: connect your phone as emulator 
Shell :: substring frequency 
Shell :: dos delete 
Shell :: linux matrix effect 
Shell :: increment variable bash 
Shell :: get ORACLE_HOME linux 
Shell :: git config user settup 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =