从这里开始:http://www.sat.dundee.ac.uk/psc/watchdog/watchdog-testing.html
for n in $(seq 1 60); do echo $n; sleep 1; sync; done
我得到的结果是::~$ sudo for n in $(seq 1 60); do echo $n; sleep 1; sync; done
bash: syntax error near unexpected token `do'
sudo
时,您不能使用需要嵌入分号的命令。 - Some programmer dude