Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Where is .bash_profile file or his equivalent?

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
mono
Posts: 145
Joined: 2009-05-10 14:39

Re: Where is .bash_profile file or his equivalent?

#16 Post by mono »

source ~/.profile
bash: /home/polo/.profile: line 26: syntax error near unexpected token `fi'
bash: /home/polo/.profile: line 26: `fi'


Correct PATH: PATH="$HOME/bin:/sbin:/bin"

User avatar
Telemachus
Posts: 4574
Joined: 2006-12-25 15:53
Been thanked: 2 times

Re: Where is .bash_profile file or his equivalent?

#17 Post by Telemachus »

mono wrote: source ~/.profile
bash: /home/polo/.profile: line 26: syntax error near unexpected token `fi'
bash: /home/polo/.profile: line 26: `fi'


Correct PATH: PATH="$HOME/bin:/sbin:/bin"
Ok, so back on page one of this thread, when I wrote this, you skipped the key step:
Telemachus wrote:After you finish your editing, do this:

Code: Select all

. .profile
The command . sources the .profile file again. After that, you should see the updated $PATH variable.
You should also clean up your .profile so that you don't get that error message every time that you login.
"We have not been faced with the need to satisfy someone else's requirements, and for this freedom we are grateful."
Dennis Ritchie and Ken Thompson, The UNIX Time-Sharing System

mono
Posts: 145
Joined: 2009-05-10 14:39

Re: Where is .bash_profile file or his equivalent?

#18 Post by mono »

I didnt skip this step. When I do . .profile
then I get...
bash: .profile: line 26: syntax error near unexpected token `fi'
bash: .profile: line 26: `fi'

User avatar
Telemachus
Posts: 4574
Joined: 2006-12-25 15:53
Been thanked: 2 times

Re: Where is .bash_profile file or his equivalent?

#19 Post by Telemachus »

mono wrote:I didnt skip this step. When I do . .profile
then I get...
bash: .profile: line 26: syntax error near unexpected token `fi'
bash: .profile: line 26: `fi'
Put # marks in front of the whole if block, so that it looks like this:

Code: Select all

# set PATH so it includes user's private bin if it exists
#if [ -d "$HOME/bin" ] ; then
#originally
# PATH="$HOME/bin:/sbin:$PATH"
#fi
Then try resourcing the file again.
"We have not been faced with the need to satisfy someone else's requirements, and for this freedom we are grateful."
Dennis Ritchie and Ken Thompson, The UNIX Time-Sharing System

mono
Posts: 145
Joined: 2009-05-10 14:39

Re: Where is .bash_profile file or his equivalent?

#20 Post by mono »

It works Telemachus!:) Thank you very much and sorry for my stupidity.

Post Reply