Bash file in Linux [message #235275] |
Fri, 04 May 2007 11:31 |
shaseeb
Messages: 113 Registered: April 2007 Location: Madison, WI
|
Senior Member |
|
|
Hi,
I'm new to Linux. I wanted to know what is the difference between .bash_profile, .bash and .bashrc? And also where are they located i.e. the directory path?
Thanks
|
|
|
|
Re: Bash file in Linux [message #235277 is a reply to message #235276] |
Fri, 04 May 2007 11:53 |
shaseeb
Messages: 113 Registered: April 2007 Location: Madison, WI
|
Senior Member |
|
|
Well, actually is does have to with Oracle because I am doing an Oracle install on Linux and I have to add some lines of script as part of the Oracle Install. I have to add some lines to the .bash_profile but I can't seem to locate it, nor do I understand the difference between the three types mentioned above.
|
|
|
|
Re: Bash file in Linux [message #235290 is a reply to message #235275] |
Fri, 04 May 2007 14:04 |
shaseeb
Messages: 113 Registered: April 2007 Location: Madison, WI
|
Senior Member |
|
|
Another thing. I am trying to execute the following command but I am getting an error. I am giving this command right before I run the installer.
[oracle@rh-staging database]$ id uid=201(oracle) gid=202(oinstall) groups=201(dba),202(oinstall) context=user_u:system_r:unconfined_t
bash: syntax error near unexpected token `('
|
|
|
|
|
Re: Bash file in Linux [message #236908 is a reply to message #235275] |
Fri, 11 May 2007 05:12 |
chaseeem
Messages: 3 Registered: September 2005 Location: Philippines
|
Junior Member |
|
|
I think you could see it in a user directory. In our instance there are 2 users mainly Apps user & DB user both have .bash_profile. Im not sure what their difference are but we use .bash_profile to automatically load env files. It is automatically executed as soon as you login.
as anacedent said
you could view it by using
ls -la since its a hidden file.
|
|
|
|