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"
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?
- Telemachus
- Posts: 4574
- Joined: 2006-12-25 15:53
- Been thanked: 2 times
Re: Where is .bash_profile file or his equivalent?
Ok, so back on page one of this thread, when I wrote this, you skipped the key step: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"
You should also clean up your .profile so that you don't get that error message every time that you login.Telemachus wrote:After you finish your editing, do this:
The command . sources the .profile file again. After that, you should see the updated $PATH variable.Code: Select all
. .profile
"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
Dennis Ritchie and Ken Thompson, The UNIX Time-Sharing System
Re: Where is .bash_profile file or his equivalent?
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'
then I get...
bash: .profile: line 26: syntax error near unexpected token `fi'
bash: .profile: line 26: `fi'
- Telemachus
- Posts: 4574
- Joined: 2006-12-25 15:53
- Been thanked: 2 times
Re: Where is .bash_profile file or his equivalent?
Put # marks in front of the whole if block, so that it looks like this: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'
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
"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
Dennis Ritchie and Ken Thompson, The UNIX Time-Sharing System
Re: Where is .bash_profile file or his equivalent?
It works Telemachus!:) Thank you very much and sorry for my stupidity.