How to setup command and varaibles one time in a server?

Hi All,

Am working on several solaris server and login as root.

As soon as access the server as root user, i need to type in below command/set :

bash;set -o vi

Is there any root profile file i can set this, so that i don't need to keep typing this command as when i access the server.

All am looking for is to set these above command one time somewhere so that whenever i access the server, by default above 2 command should have been set.

Any help on this.

Note : Am not sure about how to call these, so the subject line might look different

It's probably /root/.profile file. If not, as root, enter cd command to change to home directory for root, and then ls -a command to look at dot files and find your config file, such as that .profile file. Or, as root, just run vi $HOME/.profile command.