Thread: Setting Path

    #1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Location
    Canton, Oh, USA
    Posts
    10
    Rep Power
    0
    I'm running Redhat Linux 6.2 and I'm trying to set my path, but I'm not sure how. I'm also not sure what shell I'm running. I tried adding to /root/.cshrc but that didn't work. Also I'm telneting to the server.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Posts
    82
    Rep Power
    15

    You sorta need to know what shell you are using. Then you set the PATH in the shell resource file in your home directory:

    bash: /home/you/.profile OR .login
    tcsh: /home/you/.tcshrc OR .cshrc
    csh: /home/you/.cshrc

    and so forth
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Location
    Canton, Oh, USA
    Posts
    10
    Rep Power
    0
    How do you find out what shell you are using?
  6. #4
  7. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Posts
    6
    Rep Power
    0
    i think you just type ps to see which programs are running. one of them should be your shell, right?

    [This message has been edited by yomamma (edited September 25, 2000).]
  8. #5
  9. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    All Redhat use bash as a default shell. If you haven't changed to another, then bash is your current shell.
  10. #6
  11. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Location
    Canton, Oh, USA
    Posts
    10
    Rep Power
    0
    Thanks. I found out that in the /etc/passwd file you can define the shell and I am using bash.

IMN logo majestic logo threadwatch logo seochat tools logo