1748182 Members
3524 Online
108759 Solutions
New Discussion юеВ

Prompt display

 
Ali KEMAL
Advisor

Prompt display

Hi,

I am so new on HP-UX. After I created a user,
I logged in by the new user. Now I want to change the prompt "$" to this figure "hostname:/$". But I couldn't do it.
I couldn't find a command and find the new user's ".profile" file though searching forums.
Can anybody help me.
If somebody show step by step this how to be done, it would be so good because I am not good at Unix.
Thanks,
Ali Kemal.
3 REPLIES 3
Robert-Jan Goossens
Honored Contributor

Re: Prompt display

Hi Ali,

Add these lines to your user $HOME\.profile

PS1=$(hostname):\$PWD" $ "
export PS1

Regards,
Robert-Jan
Gokul Chandola
Trusted Contributor

Re: Prompt display

Hi,
There is .dtprofile if .dtprofile is not available.

$ls -all

Regards,
Gokul Chandola
There is always some scope for improvment.
vidyadhar_1
New Member

Re: Prompt display

you can simply add the following line in that user's .profile file
export PS1="`hostname`:/$"
and as suggested ypu can do ls -a to see .profile file or just type vi .profile