linux - Unable to use "-prune" option from find command -


I do not want to find "passwd" under the "/ etc" directory, but I have to find out the rest "passwd" , I am trying the following,

  sudo find / -name '/ etc' -prune -o -name 'passwd' -print  

this I get the output,

  /home/previous_cache/1_0_59/httpd-2.4.7/srclib/apr/passwd/home/1_0_59/httpd-2.4.7/srclib/apr/ Passwd / Etc / pam.d / passwd / etc / passwd /etc/cron.daily/passwd/user/share/bash-free/fix/passwd/usr/show/intian/override/passwood/usr/share/doc/passwd/ Usr / bin / passwd  

This is the output that I expect,

  /home/previous_cache/1_0_59/httpd-2.4.7/srclib/ Apr / passwd /home/1_0_59/httpd-2.4.7/srclib/apr/passwd/usr/share/bash - full / close / passwd / usr / share / linentian / override / passwd / usr / share / doc / passwd / usr / bin / passwd  

< P>

Try it out:

Find / path / etc '-pr Une -o -name' passwd '-print

Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -