how to Edit the .bash_profile being a normal user in Red Hat Linux?
I have installed Oracle Database server in Red Hat Linux for the first time. I edited the .bash_profile first time & defined some parameters like "export ORACLE_SID =orcl".I quit the editing. Then When I entered ". .bash_profile" it got error " not a valid identifier" it shows like
"bash: export: '=orcl' : not a valid identifier for all the lines I edited it shows same error beacause I think I put a space in between "ORACLE_SID" & "=orcl". So when I tried to edit that using "vi .bash_profile" being a normal user. It doesn't allow me editing.when I try to delete that space (because I think I have got error) using Backspace key on my computer,,it just moves the cursor to left in stead of deleting that space. so can you please provide me solution for editing this " .bash_profile" ? |
it might help if you posted exactly what you added to the local normal user .bash_profile file
also that would not be the best place to make system changes look at /etc/profile & /etc/bashrc |
Greetingz!
You need to go over bash's man page. Maybe google a bit. To Define an Environment Variable in bash: Code:
VAR_NAME=var_value Code:
export VAR_NAME Code:
echo $VAR_NAME If this post (or any other) was helpful, click "Yes" in the bottom-right-hand corner of the post. Also, if your problem is solved, use the "Thread Tools" at the top of the page to mark this as [SOLVED]. |
I did what you asked.
Quote:
please help me figure out the solution. |
post your .bash_profile HERE .
Please use code tags. Also, you need to learn VI. You have to be in edit mode for the keys to work as you expect. |
Quote:
1) Run the following command; Code:
grep -v "^#" .bash_profile | grep . | nl Quote:
|
All times are GMT -5. The time now is 08:34 AM. |