[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [NOVICE] prompt i shell.



> >> > Min promt ser underlig ud efter en ny installation af mdr 9.1:
> >> >
> >> > sslug@sslug mads]
> >> >
> >> > hvordan kan jeg ændre det til noget lidt mere normalt ?
> >> > så som:
> >> >
> >> > sslug@sslug mads]
> >>
> >> I ovenstående er x1-6-00-0a-e6-17-e4-f1 sikkert dit hostnavn (eller er
> >> det en MAC adresse med X1-6- foran ??).

> Hvis du kører kommandoen
> /sbin/ifconfig eth0|grep HWaddr
> hvad siger den så MAC adressen er for dit netkort ?

eth0		Link encap:Ethernet	HWaddr 00:0A:E6:17:E4:F1
>
> >> Så vidt som jeg ser det (er heller ikke ekspert ;-) ), så har du to
> >> muligheder: * Enten ændre dit hostnavn til noget fornuftigt. Så vidt jeg
> >> husker kan du nøjes med at gøre det ved at rette i din /etc/hosts
> >> (hvordan ser indholdet af denne fil ud ?).
> >
> > 127.0.0.1		Localhost
> >
> > Det med PS1 er faktisk smart, men det hjælper ikke lige på det problem?
>
> Hvorfor ikke ?
> Hvis du f.eks. skriver
> export PS1="sslug@sslug \W]\$"
> så bliver din prompt til noget a la:
> sslug@sslug mappenavn]$
> hvis du så gemmer export linjen i din .bashrc, så vil denne rettelse ske
> hvergang du åbner en interaktiv shell. Ellers kan du gemme den i
> .bash_profil og det sker kun under initialisering af din profil.

øøøø, jo det virker, men hvordan gemmer jeg det?

Ja lidt dum er jeg vel :-)

-- 
vh.
Mads H H Madsen
www.madsmadsen.esenet.dk


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 21:16 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *