[Linux-bruxelles] ????? hostname = -f ?????
Renaud Dans
renodan at bigfoot.com
Jeu 24 Mai 13:55:59 CEST 2001
On Thu, 24 May 2001, blenderman <blenderman at wanadoo.be> wrote:
>
>
>
> On Thu, 24 May 2001, Renaud Dans wrote:
>
> > On Wed, 23 May 2001, blenderman <blenderman at wanadoo.be> wrote:
> > >
> > > Yop tlm !
> > >
> > >
> > > J'ai un petit probleme avec mon PC,
> > >
> > > Voila le probleme illustré:
> > >
> > > 1) Je loggue ma machine en 'root'
> > > 2) Je lance X
> > > 3) Je quitte X
> > > 4) Je me 'deloggue'
> > > 5) Je me loggue en utilisateur...
> > >
> > > 6) Voila ce qu'est mon hostname: [22:42:01][blenderman at -f:~]$
> > >
> > > Comment ca ce fait ???
> >
> > cd ; cat .bashrc | grep PS1
> >
> > R.
> >
>
> mmmh...ca change rien....
>
> Voila la sortie:
>
> [09:14:03][root at -f:~]# cd ; cat .bashrc | grep PS1
> PS1="[\t][\u@\h:\w]\\$ "
> [09:14:10][root at -f:~]#
\t=time (date)
\u=user (whoami)
\h=hostname (hostname)
\w=working directory (pwd)
see:
http://www.shelluser.net/~giles/bashprompt/prompts/index.html
zless /usr/doc/HOWTO/en-txt/Bash-Prompt-HOWTO.txt.gz
man bash
Hum qu'il est bon d'avoir un prompt qui nous ressemble :)
R.
Plus d'informations sur la liste de diffusion Linux-bruxelles