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

which folder in ubuntu like windows "program files"?I asking that because i want to know where put 3 party programs.

share|improve this question

migrated from May 17 '10 at 14:53

This question came from our site for professional and enthusiast programmers.

up vote 5 down vote accepted
Linux (and Ubuntu, being just another Linux distribution) have a different folder hierarchy than Windows. There is no exact matching to “Program Files”, although ‘/usr/bin’ is a fairly close. In general, you would like to put your binaries in /usr/bin (unless your program is “essential”, in which case you’ll put it in ‘/bin’). Note that typically you will not create a dedicated folder for your application, but /usr/bin is a huge folder with all executable of all programs. The configuration files of your program will go to /etc or /etc/your_program, and if you have any state information put it in ‘/var/lib’.

Beleive it or not, this is all defined in a standard called FHS (Filesystem Hierarchy Standard). Find more details here:

  • Wikipedia
  • share|improve this answer
    Thank you, I read your link- he explain well. – Anonymous May 17 '10 at 13:05

    /usr/local or /opt/

    share|improve this answer

    I suggest to use dedicated folder / or /usr/local/ or /opt/ as mentioned change vendor to the name o 3rd party or product name). After that You should configure environment variables ( PATH) in .profile for example. It is worth of effort because during update You will have easier control what parts of the system You are modifying.

    share|improve this answer

    Windows is not Linux.


    man hier

    in a Linux console and reading that is a good starting point.

    share|improve this answer

    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.