From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: f678f,5d419b26706a8d8a X-Google-Attributes: gidf678f,public From: "Hans Peter Kain" Subject: Re: Shell prompt of root Date: 1999/04/22 Message-ID: <371ee501.0@server02.bnet.at>#1/1 X-Deja-AN: 469481582 References: <7fk2bo$egd@ustsu10.ust.hk> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 X-Complaints-To: abuse@Austria.EU.net X-Trace: fleetstreet.Austria.EU.net 924772454 24391 195.230.160.11 (22 Apr 1999 09:14:14 GMT) Organization: Customer of EUnet Austria NNTP-Posting-Date: 22 Apr 1999 09:14:14 GMT Newsgroups: comp.unix.osf.misc To change the shell prompt of root user in a bourne shell simply add the following two entries in the $HOME/.profile - File of your root user: PS1="`hostname`#" export PS1 Thats all. PS1 is an predefined shell variable that defines the primary system prompt. You can also define a secondary system prompt (=PS2) which is used if a command extends over more than one line. It is very important to use the character ` not � or ' because all whats between two � is interpreted as a command. Regards Hans Peter. Chan Kin Man schrieb in Nachricht <7fk2bo$egd@ustsu10.ust.hk>... >Dears, > >How can I change the prompt of bourne shell (root user) from >'#' to 'hostname#' ? > >Thanks. > >MAN >~~~