Back

linux - find 命令 + exec 记得使用 \; 结尾,否则报错 find: missing argument to `-exec'

发布时间: 2023-01-15 08:15:00

refer to:
https://stackoverflow.com/questions/2961673/find-missing-argument-to-exec

find: missing argument to `-exec'

解决办法: 结尾加上 \;

例如:

find /tmp/root_lala -exec whoami \;

Back