An application usually consists of 3 different file types :

  • binary files
  • configuration files
  • application data

Where does Linux (CentOS, RHEL) store the binary files for a given application / how can I find it out for an application ?

  • 2
    It's unclear whether you mean "executable binary file" (the actual command, which in fact may not be a compiled binary at all) or "binary data file". What is the issue that you are currently having? Are you, for example, trying to find the executable associated with a particular package? – Kusalananda Feb 26 at 10:44
  • Ok sorry, I misunderstood you. I mean the binaries that make up a program or service. – blabla_trace Feb 26 at 10:59

You can use whereis for this task.

$ whereis python3
python3: /usr/bin/python3.5m /usr/bin/python3 /usr/bin/python3.5 /usr/lib/python3 /usr/lib/python3.5 /etc/python3 /usr/local/lib/python3.5 /usr/share/python3 /usr/share/man/man1/python3.1.gz
  • 2
    And while whereis checks the standard path, you can also use which to check the actual path (though it won't find "shadowed" duplicates). – dirkt Feb 26 at 10:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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