|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
How do you find out what shell you are using?
|
|
#4
|
|||
|
|||
|
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).] |
|
#5
|
|||
|
|||
|
All Redhat use bash as a default shell. If you haven't changed to another, then bash is your current shell.
|
|
#6
|
|||
|
|||
|
Thanks. I found out that in the /etc/passwd file you can define the shell and I am using bash.
|
![]() |
| Viewing: Dev Shed Forums > Other > Beginner Programming > Setting Path |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|