Results 1 to 4 of 4

Thread: Issue in adding a Diractory to PATH variable

  1. #1
    Join Date
    Sep 2009
    Posts
    2

    Issue in adding a Diractory to PATH variable

    Hi,

    I added a Diectory to PATH variable in the .profile file in the home directory but when I checked the PATH variable using env
    command, I found that the added Directory is not reflected in the PATH variable.

    I even tried the command export PATH=/<Directory Path>:$HOME using sudo login. But it didnt worked.

    Is this problem in the RH4 OS or any other issue. Please help me in this regard.

    Thanks In Advance!!

  2. #2
    Join Date
    Jan 2009
    Posts
    1,738

    Re: Issue in adding a Diractory to PATH variable

    To add directory /abc/xyz to the beginning of the $PATH environment variable, use the following:

    Code:
    PATH=/abc/xyz:$PATH
    To add that directory to the end of the path, use the following command:

    Code:
    PATH=$PATH:/abc/xyz

  3. #3
    Join Date
    Sep 2009
    Posts
    2

    Re: Issue in adding a Directory to PATH variable

    Thanks Rudra..
    I tried to modify the $HOME/.profile. But it should not be done.

    We should give the command as follows:
    $ export PATH=/<directory name>:$PATH

    this must be given from the command prompt itself so that it will update the $HOME/.profile

    Now everything is working fine.

  4. #4
    Join Date
    Jan 2009
    Posts
    1,738

    Re: Issue in adding a Directory to PATH variable

    Quote Originally Posted by suku123 View Post
    Thanks Rudra..
    I tried to modify the $HOME/.profile. But it should not be done.

    We should give the command as follows:
    $ export PATH=/<directory name>:$PATH

    this must be given from the command prompt itself so that it will update the $HOME/.profile

    Now everything is working fine.
    Right. Glad you made it...

Similar Threads

  1. Sims 3 Ambitions Path finding Issue and bugs
    By Lohitaksha in forum Video Games
    Replies: 6
    Last Post: 06-07-2010, 12:10 AM
  2. How to set Environment Variable Path in Linux
    By GunFighter in forum Software Development
    Replies: 3
    Last Post: 07-07-2009, 02:56 PM
  3. Issue while Adding text in dreamweaver
    By Metechman in forum Software Development
    Replies: 2
    Last Post: 19-05-2009, 04:23 PM
  4. display "path" system variable in cmd.exe
    By John A Grandy in forum Windows Server Help
    Replies: 1
    Last Post: 12-12-2008, 12:26 PM
  5. Increase the PATH environment variable limit to 2048 char on 2003
    By Morten Ross in forum Windows Server Help
    Replies: 5
    Last Post: 21-05-2008, 01:01 AM

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
  •  
Page generated in 1,713,584,076.59028 seconds with 16 queries