Results 1 to 5 of 5

Thread: Adding A Path As Root

  1. #1
    mwade Guest

    Default

    Hello,

    I am running Open suse 10.2. I am trying to add the following path /root/Desktop/tools so I can execute those tools anywhere on the system. I am looking to add this permenantly.

    I have tried PATH=$PATH:/root/Desktop/tools
    export path

    I see a lot of information to add an entry to the .bash_profile. I don't have that file. I also see to add to .bashrc. Do I add the below to the .bashrc

    PATH=$PATH:/root/Desktop/tools
    export PATH


    Again I am looking to do this permentantly as root.

    thanks

    mark

  2. #2
    WJM Guest

    Default

    If you only want this for one user, in this case root, you can add the path to the .bashrc in the /root.
    Add something like:

    Code:
    #addning my tools to path
    export PATH=$PATH:/root/Desktop/tools
    The next console that gets opened will have the path added

    edit: typo in homedir

  3. #3
    mwade Guest

    Default

    If you only want this for one user, in this case root, you can add the path to the .bashrc in the /root/home.
    Add something like:

    Code:
    #addning my tools to path
    export PATH=$PATH:/root/Desktop/tools
    The next console that gets opened will have the path added
    [/b]

    Thanks. I do not see .bashrc in /root, only in /etc/skel/, and /home/user/.



    Thanks. I do not see .bashrc in /root, only in /etc/skel/, and /home/user/.

  4. #4
    WJM Guest

    Default

    True... by default their isn't one. Just make a new file with that name & include the path.
    It should work..

  5. #5
    mwade Guest

    Default

    True... by default their isn't one. Just make a new file with that name & include the path.
    It should work..
    [/b]

    GREAT, thanks. That worked.

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.5.2