Anyone know
How to configure solaris 8 to display hostname in command prompt , everytime when you open a terminal screen .
Anyone know
How to configure solaris 8 to display hostname in command prompt , everytime when you open a terminal screen .
cat ~/.profile
echo $PS1
Hi,
this is for the bash.
cd ~username # This change the current dir to the home directory of the user.
vi .profile # Open the .profile file inside the vi
export PS1="\u@\h:[\w] $ " # insert this line and !
u=user
h=host
w=current DIR
This is the promt:
user@hostname[current path]
regards
joerg
It depends entiely on the shell you are using, joerg has given a bash example but if you are not using bash you will need to use the method appropriate to the shell you are using.