Results 1 to 6 of 6

Thread: my own /usr/bin ?

  1. #1
    Join Date
    Apr 2012
    Beans
    23

    my own /usr/bin ?

    Hey
    I have startet making small scripts, placing them in /usr/bin so that I can run them from any folder.

    However, is it possible to add a new folder like that, so I can place my scripts where I want them, to keep them organized?

    Lets say putting my scripts in /home/user/scripts/ instead, would that be possible?

    Thanks

  2. #2
    Join Date
    Oct 2011
    Beans
    53

    Re: my own /usr/bin ?

    Put your scripts to /home/USERNAME/bin directory.

  3. #3
    Join Date
    Apr 2012
    Beans
    23

    Re: my own /usr/bin ?

    I dont want that, I want to choose my own folder, eg for placing it inside a dropbox folder so I that I have my scripts at all times on all my computers

  4. #4
    Join Date
    Oct 2011
    Location
    ZZ9 Plural Z Alpha
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: my own /usr/bin ?

    ~/bin is included in your $PATH, so scripts that are in there can be run just by calling the script name, as you're wanting.
    If for some reason it hasn't been included in $PATH yet, you can by simply running

    Code:
    $PATH=PATH:\home\user_name\bin

  5. #5
    Join Date
    Oct 2011
    Beans
    53

    Re: my own /usr/bin ?

    Then edit your .profile file in your home directory and add the directory what you want to your PATH. Just like it is done there with the $HOME/bin directory.

  6. #6
    Join Date
    Apr 2012
    Beans
    23

    Re: my own /usr/bin ?

    Thanks for the quick answers guys

Tags for this Thread

Bookmarks

Posting Permissions

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