$pwd
This will show you your home directory. Typically, if you are root it is
/root
If you are having a user account in your name, it should be
/home/myName
Now, try this at the prompt,
$ls -all
And look for .bash_profile This file is the one who knows what paths are set in your account
You can add more paths to it and then save it. Once .bash_profile is saved, in order to make changes effective, you will need to do
$. .bash_profile
[Note the two dots before bash_profile]
OR
$source .bash_profile
And then do,
$echo $PATH
you will be able to see new paths shown.

No comments:
Post a Comment