I ran the command ls -l /usr/bin/locate and from what I have read it is a symbolic link to slocate. Attached is a screenshot of what is displayed. As you'll see it is different to the results above it.

Above the result for ls -l /usr/bin/locate is a list of symbolic links in the rc0.d directory.

Secondly, why does slocate have a background color of what seems to be brown.

I have CentOS 5 running.

enter image description here

link|improve this question

feedback

1 Answer

up vote 1 down vote accepted

In your ls output, /usr/bin/locate is not a symbolic link but a regular file. Its orange/brown color is likely due to the setgid bit being set.

link|improve this answer
Thanks. I can see that it is not a symbolic link but why is that when other sources cite it as a symbolic link? – PeanutsMonkey Jul 23 '11 at 1:42
It's just a difference in implementation between distros. The functionality should be the same. – pavium Jul 23 '11 at 2:11
When you say implementation is different, what does this mean exactly? – PeanutsMonkey Jul 23 '11 at 4:44
That means no standard or technical reason require that command to be a symbolic link so it is up to the Operating System developers to decide. – jlliagre Jul 23 '11 at 13:42
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.