我想知道在nohup中运行某些东西需要花费多少时间。我知道这可行:
$ time sleep 2
real 0m2.001s
user 0m0.000s
sys 0m0.001s
但是,为什么它不能与nohup一起使用?
$ nohup time sleep 2 &
[1] 29456
$ nohup: ignoring input and appending output to 'nohup.out'
nohup: failed to run command 'time': No such file or directory
[1]+ Exit 127 nohup time sleep 2