Find the answer to your Linux question:
Results 1 to 4 of 4
I'm not entirely familiar with the Linux directory structure. Once I've written a program, what's the appropriate place for it? /usr/bin or some other place?...
  1. #1
    Just Joined!
    Join Date
    Jun 2009
    Posts
    24

    Question [SOLVED] Where do I put my executables?

    I'm not entirely familiar with the Linux directory structure. Once I've written a program, what's the appropriate place for it? /usr/bin or some other place?

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,961
    You can put it anywhere, but it is not recommended to put it in /usr/bin. If you need to allow access to it by others than yourself, then put it in /usr/local/bin, otherwise, create a bin directory in your home and put it there. That's what I do with personal tools that are not intended for general use. IE:
    Code:
    mkdir ~/bin
    cp exctbl ~/bin
    You can put ~/bin in your PATH so it finds your personal tools and applications. In your .bash_profile, add this:
    Code:
    export PATH=${PATH}:~/bin
    BTW, you only need to create ~/bin once.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,344
    For more info on the Linux directory structure, take a look at the Filesystem Hierarchy Standard.

  4. #4
    Just Joined!
    Join Date
    Jun 2009
    Posts
    24
    Thanks, that's what I needed.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...