Where is PATH line located in ubuntu 12.04?
Where can I modify PATH line in ubuntu 12.04? I typed PATH=$PATH:$HOME
then typed export PATH. Home dir was in path when I looked at it with echo $PATH but went away after I relogged in. How can I make it permanent? and where exactly is it in a file in Ubuntu 12.04? |
you are looking for the bash_profile
its at /home/username/.bash_profile |
The magic is in ~/.profile
do you really want $HOME in path? it is usual to have $HOME/bin in PATH this is handled in ~/.profile Code:
# ~/.profile: executed by the command interpreter for login shells. Code:
mkdir ~/bin an alternative to source ~/.profile is . ~/.profile note the "."<space>~/. If you feel you must have $HOME in $PATH, you can add it ( along with any others you would like ) to the end of ~/.profile |
Quote:
I type ls -la|less and .bash_profile does not exist. |
where is PATH
FIRERAT:
I did as you said and it works. I also found full Path in /etc/environment. Thank you |
Solved!
I tried to mark this as solved but I got a 502 Bad Gateway error message....?
Just now tried it again and it went ok. |
All times are GMT -5. The time now is 03:08 PM. |