I am trying to find all the symbolic links on my system with name
keytool. I use the below command :
ls -lR | grep keytool
It gives some results, but i want the directory names as well. So i use the -d option:
ls -ldR | grep keytool
But this gives me no results at all. This is probably because of the behaviour of -d option as described by
-d : list directory entries instead of contents, and do not dereference symbolic links
So how do i get the directory names of the symbolic links?