Latest web development tutorials

Linux sleep command

Linux command Daquan Linux command Daquan

Linux sleep command can be used to delay action at present time.

Access: All users.

grammar

sleep [--help] [--version] number[smhd]

Parameter Description:

  • --help: display auxiliary information
  • --version: display version number
  • number: length of time, it can be followed by s, m, h, or d
  • Wherein s is seconds, m is minutes, h is hours, d is the number of days

Examples

Sleep 5 minutes

# sleep 5m

Displays the current delay time after 1 minute, and again after the display time

date;sleep 1m;date

Linux command Daquan Linux command Daquan