3

In my Linux server, there are some symbolic links look like:

quick_job -> /home/thejobco/public_html/JCCore/quick_job/

Now if I want to find out all the symbolic links to /home/thejobco/public_html/JCCore/quick_job/, according to this "symbolic link: find all files that link to this file", I tried this command:

find -L / -samefile /home/thejobco/public_html/JCCore/quick_job/

but in ssh it shows:

find: /: Permission denied  

So, what is going wrong here? And, what is the right command to run to find all symbolic links pointing to folder /home/thejobco/public_html/JCCore/quick_job/?

Community
  • 1
  • 1
user2294256
  • 1,029
  • 1
  • 13
  • 22

1 Answers1

3

find tells you that you have no access to / directory.

To search in a directory you have access to:

find -L /home/thejobco -samefile /home/thejobco/public_html/JCCore/quick_job/
the Tin Man
  • 158,662
  • 42
  • 215
  • 303
kriomant
  • 2,216
  • 1
  • 16
  • 21
  • [thejobco@needsmet ~]$ find /home/thejobco -L -samefile /home/thejobco/public_html/JCCore/quick_job/. find: invalid predicate `-L' – user2294256 Aug 22 '13 at 02:15