Path command

Tom H tomh0665 at gmail.com
Fri May 3 09:33:47 UTC 2013


On Fri, May 3, 2013 at 1:54 AM, Stephen <stephen_o at bell.net> wrote:
>
> It seems like my path variable in Ubuntu 12.04 got corrupted some how.
> Programs that I used to start in a terminal are saying path not found or
> /dir/dir/dir/ is not in the path
>
> When I type path in the terminal it says path not found. I thought it was
> like dos and when you typed a variable in the terminal it told you what the
> setting for that variable is.
>
> Is there some way I can restore the path variable?

What's your current PATH?
echo $PATH

Check the files where you might have changed it
cd /etc ; grep PATH bash.bashrc environment login.defs profile profile.d/*
as well as
cd ; grep PATH .bash_login .bash_profile .bashrc .profile

(assuming that you're using bash!)




More information about the ubuntu-users mailing list