Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
up vote 2 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.

share|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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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