Adding Commands to Shell
Using Solaris 10 where is it that you add the path to certain commands like:
/usr/local/bin/make and others? |
Depends. One place for all users may be /etc/default/login.
Another place could be your shell initialization file, which depends on the shell you're using, and may include, for example, /etc/profile, .profile, .bash_profile, .bash_login, etc. |
I think that this is the BASH shell. I want the BASH shell as the default and I need to add commands to the path. I will look into what you suggested. thanks
PHP Code:
|
I have some of those files but now all of them and I didnt see where you specify what I want in the few files that I found. What gives?
|
Quote:
In spite of all urban legends the Bourne shell -which is what you 've got- is still the default for Solaris 10. |
ok, so how would I change that is Solaris 10. I have looked everywhere. help?
|
If you want to set a PATH for all user, simply edit /etc/default/login and that's done. If your shell is bash, which doesn't seem to be according to the output of echo $SHELL that you posted (check /etc/passwd, last field of your user's record), you can read bash man page:
Quote:
Quote:
Quote:
Enrico. |
Quote:
But in the future "everywhere" should include at least man pages. In linux it's the _very_ same. |
I do not have any of these in my home directory.
PHP Code:
|
No, that's not Solaris 10. That's bash. Create the file you like most and write down there the commands you want to execute at bash login.
|
how about when I login as root?
|
The same, but be careful about changing root shell. I usually start a login bash (with bash -l) when I use root and want bash's specific features. Now, I'm trying to migrate myself to ksh.
|
so just create those files and then what about adding certain paths to certain files?
|
In the case of using bash, you can
Code:
export PATH=/path/to/the/file/you/like:$PATH Code:
echo $PATH |
Quote:
|
All times are GMT -5. The time now is 09:52 AM. |