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

link|improve this question

2  
Belongs on superuser.com – Paul R May 17 '10 at 11:40
1  
true, i bet www.superuser.com already has a similar question answered! – Philipp Andre May 17 '10 at 11:46
feedback

migrated from stackoverflow.com May 17 '10 at 14:53

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

4 Answers

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
  • link|improve this answer
    Thank you, I read your link- he explain well. – Anonymous May 17 '10 at 13:05
    feedback

    /usr/local or /opt/

    link|improve this answer
    feedback

    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.

    link|improve this answer
    feedback

    Windows is not Linux.

    Typing

    man hier
    

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

    link|improve this answer
    feedback

    Your Answer

     
    or
    required, but never shown

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