configure the .bash_profile
Asked by
Otonabee
I have two machines and have fedora and ubuntu installed individually. Why my .bash_profile is not working in ubuntu (both .bash_profiles are the same)?
.bash_profile
=======
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
PATH=$PATH:
export PATH
=======
For example, I have an executable file named hello, then I can run this file by typing hello in fedora machine but not in ubuntu. I need to type ./hello in ubuntu. Anyone can tell me why and how to fix the problem?
Thanks!!!
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Otonabee for more information if necessary.
To post a message you must log in.