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

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


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

注意: {} 前后均有空格

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

猜你喜欢

转载自blog.csdn.net/weixin_40845192/article/details/84833230
今日推荐