I want to search for all occurences of
<searchterm> on my machine. Now when I perform a search like this
find / <searchterm>
I can see all the paths the search is running through. How can I limit the results to my searchterm?
I have a folder, let's call it
my-own-folder. Now when I want to know if there are any other folders with the same name and run a search for
find / my-own-folder
the output shows a couple of hundred lines like this
/var/www/my-own-folder/index.php /var/www/my-own-folder/lib/1.php /var/www/my-own-folder/templates/2.php /var/www/my-own-folder/log/3.log
followed by another thousands of lines (~380k lines) that contain
/var and so on, examples:
/etc/gshadow /etc/fonts /dev/ram7 /media/user /run/udev/watch /bin/gzexe /vmlinuz /lost+found
And the lines don't contain
my-own-folder. I highly doubt, that they're all connected to that folder. So why are they outputted?
I want to apply a patch for openldap but don't know where I can find the folder in order to run the patch. So when I search
find / openldap find / slapd
it seems to output all locations where the search is performed, and not only the occurences of
My fault was not to use
-name in my search like this
find / -name "<searchterm>"