Home » RDBMS Server » Server Administration » Bash file in Linux
Bash file in Linux [message #235275] Fri, 04 May 2007 11:31 Go to next message
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 #235276 is a reply to message #235275] Fri, 04 May 2007 11:45 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
This question has NOTHING to do with Oracle.
GOOGLE is your friend, but only if you are willing to use it.

Or if you REALLY want to know then:
$ man bash
& Read The Fine Man page

[Updated on: Fri, 04 May 2007 11:50] by Moderator

Report message to a moderator

Re: Bash file in Linux [message #235277 is a reply to message #235276] Fri, 04 May 2007 11:53 Go to previous messageGo to next message
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 #235278 is a reply to message #235275] Fri, 04 May 2007 11:54 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
ls -la $HOME

P.S.
They do NOT have to exist

[Updated on: Fri, 04 May 2007 11:57] by Moderator

Report message to a moderator

Re: Bash file in Linux [message #235290 is a reply to message #235275] Fri, 04 May 2007 14:04 Go to previous messageGo to next message
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 #235295 is a reply to message #235290] Fri, 04 May 2007 15:05 Go to previous messageGo to next message
joy_division
Messages: 4963
Registered: February 2005
Location: East Coast USA
Senior Member
That is not a linux/unix command. why did you type that on the command line?
Re: Bash file in Linux [message #235296 is a reply to message #235275] Fri, 04 May 2007 15:19 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
id - is a valid command
$ man id
Re: Bash file in Linux [message #236908 is a reply to message #235275] Fri, 11 May 2007 05:12 Go to previous messageGo to next message
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.
Re: Bash file in Linux [message #237049 is a reply to message #235296] Fri, 11 May 2007 13:28 Go to previous message
joy_division
Messages: 4963
Registered: February 2005
Location: East Coast USA
Senior Member
id is yes, but not with all that other extraneous stuff.
Previous Topic: Trace Files
Next Topic: Regards Controlfiles
Goto Forum:
  


Current Time: Fri Sep 20 11:40:11 CDT 2024