1. 程式人生 > >Linux find: missing argument to `-exec' find: missing argument to `-ok'

Linux find: missing argument to `-exec' find: missing argument to `-ok'

[[email protected] ~]# find / -name anaconda-ks.cfg -exec ls -i {} \;
17980687 /root/anaconda-ks.cfg


[[email protected] ~]# find / -name anaconda-ks.cfg -ok rf {} \;
< rf ... /root/anaconda-ks.cfg > ? n
[[email protected] ~]# 

注意: {} 前後均有空格

原文:https://blog.csdn.net/Alicia_N/article/details/82018642