sleep

指定延迟时间

语法

  sleep [NUMBER [smhd]]...

选项:

s  :  秒(默认)

m  :  分钟

h  :  小时

d  :  天

实例

延时5秒

$ sleep 5

延时5分钟

$ sleep 5m

延时5小时

$ sleep 5h

延时5天

 $ sleep 5d

显示当前目录 延时1s 进入/home目录

$ pwd;sleep 1;cd /home

sleep 命令实例:

linux命令:sleep 3m; play bigben.wav bigben.wav play 3m; sleep sleep 3m; play bigben.wavrootopen.com
linux命令:sleep 3m; play bigben.wav bigben.wav play 3m; sleep sleep 3m; play bigben.wavrootopen.com
2018-01-18 01:12:48

linux命令:sleep 5h && rhythmbox path/to/song path/to/song rhythmbox && 5h sleep sleep 5h && rhythmbox path/to/songrootopen.com
linux命令:sleep 5h && rhythmbox path/to/song path/to/song rhythmbox && 5h sleep sleep 5h && rhythmbox path/to/songrootopen.com
2018-03-09 10:43:48

linux命令:sleeper(){ while `ps -p $1 &>/dev/null`; do echo -n "${2:-.}"; sleep ${3:-1}; done; }; export -f sleeper sleeper -f export }; done; ${3:-1}; sleep "${2:-.}"; -n echo do &>/dev/null`; $1 -p `ps while sleeper(){ sleeper(){ while `ps -p $1 &>/dev/null`; do echo -n "${2:-.}"; sleep ${3:-1}; done; }; export -f sleeperrootopen.com
linux命令:sleeper(){ while `ps -p $1 &>/dev/null`; do echo -n "${2:-.}"; sleep ${3:-1}; done; }; export -f sleeper sleeper -f export }; done; ${3:-1}; sleep "${2:-.}"; -n echo do &>/dev/null`; $1 -p `ps while sleeper(){ sleeper(){ while `ps -p $1 &>/dev/null`; do echo -n "${2:-.}"; sleep ${3:-1}; done; }; export -f sleeperrootopen.com
2018-04-26 07:15:48

linux命令:sleep 3 && xdotool type --delay 0ms texthere texthere 0ms --delay type xdotool && 3 sleep sleep 3 && xdotool type --delay 0ms texthererootopen.com
linux命令:sleep 3 && xdotool type --delay 0ms texthere texthere 0ms --delay type xdotool && 3 sleep sleep 3 && xdotool type --delay 0ms texthererootopen.com
2018-01-04 13:35:48

linux命令:sleep 8h && while [ 1 ] ; do date "+Good Morning. It is time to wake up. The time is %I %M %p" | espeak -v english -p 0 -s 150 -a 100 ; sleep 1m; done done 1m; sleep ; 100 -a 150 -s 0 -p english -v espeak | %p" %M %I is time The up. wake to time is It Morning. "+Good date do ; ] 1 [ while && 8h sleep sleep 8h && while [ 1 ] ; do date "+Good Morning. It is time to wake up. The time is %I %M %p" | espeak -v english -p 0 -s 150 -a 100 ; sleep 1m; donerootopen.com
linux命令:sleep 8h && while [ 1 ] ; do date "+Good Morning. It is time to wake up. The time is %I %M %p" | espeak -v english -p 0 -s 150 -a 100 ; sleep 1m; done done 1m; sleep ; 100 -a 150 -s 0 -p english -v espeak | %p" %M %I is time The up. wake to time is It Morning. "+Good date do ; ] 1 [ while && 8h sleep sleep 8h && while [ 1 ] ; do date "+Good Morning. It is time to wake up. The time is %I %M %p" | espeak -v english -p 0 -s 150 -a 100 ; sleep 1m; donerootopen.com
2018-03-21 12:50:48

linux命令:sleep 6s && notify-send -t 10000 -u critical "remember to think" & & think" to "remember critical -u 10000 -t notify-send && 6s sleep sleep 6s && notify-send -t 10000 -u critical "remember to think" &rootopen.com
linux命令:sleep 6s && notify-send -t 10000 -u critical "remember to think" & & think" to "remember critical -u 10000 -t notify-send && 6s sleep sleep 6s && notify-send -t 10000 -u critical "remember to think" &rootopen.com
2018-01-24 03:09:48

linux命令:sleep 4; xwd >foo.xwd; mv foo.xwd "$(dd skip=100 if=foo.xwd bs=1 count=256 2>/dev/null | egrep -ao '^[[:print:]]+' | tr / :).xwd" :).xwd" / tr | '^[[:print:]]+' -ao egrep | 2>/dev/null count=256 bs=1 if=foo.xwd skip=100 "$(dd foo.xwd mv >foo.xwd; xwd 4; sleep sleep 4; xwd >foo.xwd; mv foo.xwd "$(dd skip=100 if=foo.xwd bs=1 count=256 2>/dev/null | egrep -ao '^[[:print:]]+' | tr / :).xwd"rootopen.com
linux命令:sleep 4; xwd >foo.xwd; mv foo.xwd "$(dd skip=100 if=foo.xwd bs=1 count=256 2>/dev/null | egrep -ao '^[[:print:]]+' | tr / :).xwd" :).xwd" / tr | '^[[:print:]]+' -ao egrep | 2>/dev/null count=256 bs=1 if=foo.xwd skip=100 "$(dd foo.xwd mv >foo.xwd; xwd 4; sleep sleep 4; xwd >foo.xwd; mv foo.xwd "$(dd skip=100 if=foo.xwd bs=1 count=256 2>/dev/null | egrep -ao '^[[:print:]]+' | tr / :).xwd"rootopen.com
2018-05-04 18:59:48

linux命令:sleep 4; xwd > /tmp/_.xwd ; gimp /tmp/_.xwd /tmp/_.xwd gimp ; /tmp/_.xwd > xwd 4; sleep sleep 4; xwd > /tmp/_.xwd ; gimp /tmp/_.xwdrootopen.com
linux命令:sleep 4; xwd > /tmp/_.xwd ; gimp /tmp/_.xwd /tmp/_.xwd gimp ; /tmp/_.xwd > xwd 4; sleep sleep 4; xwd > /tmp/_.xwd ; gimp /tmp/_.xwdrootopen.com
2018-03-25 15:35:48

linux命令:sleep 4; F="$(tempfile -s '.xwd')"; xwd > "$F" ; gimp "$F" "$F" gimp ; "$F" > xwd '.xwd')"; -s F="$(tempfile 4; sleep sleep 4; F="$(tempfile -s '.xwd')"; xwd > "$F" ; gimp "$F"rootopen.com
linux命令:sleep 4; F="$(tempfile -s '.xwd')"; xwd > "$F" ; gimp "$F" "$F" gimp ; "$F" > xwd '.xwd')"; -s F="$(tempfile 4; sleep sleep 4; F="$(tempfile -s '.xwd')"; xwd > "$F" ; gimp "$F"rootopen.com
2018-02-18 00:14:48

linux命令:sleep 3600; amixer set Master mute mute Master set amixer 3600; sleep sleep 3600; amixer set Master muterootopen.com
linux命令:sleep 3600; amixer set Master mute mute Master set amixer 3600; sleep sleep 3600; amixer set Master muterootopen.com
2018-01-24 14:40:48

linux命令:sleep 15m; yes > /dev/dsp /dev/dsp > yes 15m; sleep sleep 15m; yes > /dev/dsprootopen.com
linux命令:sleep 15m; yes > /dev/dsp /dev/dsp > yes 15m; sleep sleep 15m; yes > /dev/dsprootopen.com
2018-06-06 06:09:48

linux命令:sleep 3s && espeak "wake up, you bastard" 2>/dev/null 2>/dev/null bastard" you up, "wake espeak && 3s sleep sleep 3s && espeak "wake up, you bastard" 2>/dev/nullrootopen.com
linux命令:sleep 3s && espeak "wake up, you bastard" 2>/dev/null 2>/dev/null bastard" you up, "wake espeak && 3s sleep sleep 3s && espeak "wake up, you bastard" 2>/dev/nullrootopen.com
2018-02-06 12:42:48

linux命令:sleep 4h && halt halt && 4h sleep sleep 4h && haltrootopen.com
linux命令:sleep 4h && halt halt && 4h sleep sleep 4h && haltrootopen.com
2018-03-31 02:30:48

linux命令:sleep 15 ; `echo "done" | mail -s "done" 4158575309@txt.att.net` 4158575309@txt.att.net` "done" -s mail | "done" `echo ; 15 sleep sleep 15 ; `echo "done" | mail -s "done" 4158575309@txt.att.net`rootopen.com
linux命令:sleep 15 ; `echo "done" | mail -s "done" 4158575309@txt.att.net` 4158575309@txt.att.net` "done" -s mail | "done" `echo ; 15 sleep sleep 15 ; `echo "done" | mail -s "done" 4158575309@txt.att.net`rootopen.com
2018-05-28 02:12:48

linux命令:sleep 3;import -window root output.png output.png root -window 3;import sleep sleep 3;import -window root output.pngrootopen.com
linux命令:sleep 3;import -window root output.png output.png root -window 3;import sleep sleep 3;import -window root output.pngrootopen.com
2018-01-11 13:40:48

linux命令:sleep $((3600 - ($(date +%s) % 3600) )) )) 3600) % +%s) ($(date - $((3600 sleep sleep $((3600 - ($(date +%s) % 3600) ))rootopen.com
linux命令:sleep $((3600 - ($(date +%s) % 3600) )) )) 3600) % +%s) ($(date - $((3600 sleep sleep $((3600 - ($(date +%s) % 3600) ))rootopen.com
2018-06-09 23:23:48

linux命令:sleep `shuf -i 0-3600 -n 1` 1` -n 0-3600 -i `shuf sleep sleep `shuf -i 0-3600 -n 1`rootopen.com
linux命令:sleep `shuf -i 0-3600 -n 1` 1` -n 0-3600 -i `shuf sleep sleep `shuf -i 0-3600 -n 1`rootopen.com
2018-06-06 21:21:48

linux命令:sleep 10; poweroff poweroff 10; sleep sleep 10; poweroffrootopen.com
linux命令:sleep 10; poweroff poweroff 10; sleep sleep 10; poweroffrootopen.com
2018-05-12 15:59:48

linux命令:sleep 10 & wait $! $! wait & 10 sleep sleep 10 & wait $!rootopen.com
linux命令:sleep 10 & wait $! $! wait & 10 sleep sleep 10 & wait $!rootopen.com
2018-03-09 14:45:48

linux命令:sleep 10 & perl -e '$|=@s=qw(-Ooooo \oOooo |ooOoo /oooOo -ooooO \oooOo |ooOoo /oOooo);while(kill 0,'$!'){ print "\r",$s[$t++%($#s+1)];select(undef,undef,undef,0.2);}' "\r",$s[$t++%($#s+1)];select(undef,undef,undef,0.2);}' print 0,'$!'){ /oOooo);while(kill |ooOoo \oooOo -ooooO /oooOo |ooOoo \oOooo '$|=@s=qw(-Ooooo -e perl & 10 sleep sleep 10 & perl -e '$|=@s=qw(-Ooooo \oOooo |ooOoo /oooOo -ooooO \oooOo |ooOoo /oOooo);while(kill 0,'$!'){ print "\r",$s[$t++%($#s+1)];select(undef,undef,undef,0.2);}'rootopen.com
linux命令:sleep 10 & perl -e '$|=@s=qw(-Ooooo \oOooo |ooOoo /oooOo -ooooO \oooOo |ooOoo /oOooo);while(kill 0,'$!'){ print "\r",$s[$t++%($#s+1)];select(undef,undef,undef,0.2);}' "\r",$s[$t++%($#s+1)];select(undef,undef,undef,0.2);}' print 0,'$!'){ /oOooo);while(kill |ooOoo \oooOo -ooooO /oooOo |ooOoo \oOooo '$|=@s=qw(-Ooooo -e perl & 10 sleep sleep 10 & perl -e '$|=@s=qw(-Ooooo \oOooo |ooOoo /oooOo -ooooO \oooOo |ooOoo /oOooo);while(kill 0,'$!'){ print "\r",$s[$t++%($#s+1)];select(undef,undef,undef,0.2);}'rootopen.com
2018-06-01 16:00:48

Linux的Bash命令行(A-Z排序)