Terminal - name too long
On Thu, Nov 25, 2010 at 23:02, Johan Scheepers <johansche@telkomsa.net> wrote:
> John R Pierce wrote: >> On 11/25/10 12:36 PM, Johan Scheepers wrote: >>> Good day, >>> >>>> [johan@unknown2a6800000000 ~]$ >>> How/where could I make the above a lot shorter please. >> >> A) choose a shorter hostname >> >> B) change your default prompt via an export PS1=.... * in $HOME/.bashrc >> >> >> see >> http://tldp.org/HOWTO/Bash-Prompt-HOWTO/bash-prompt-escape-sequences.html for >> the PS1 options... >> _______________________________________________ >> CentOS mailing list >> CentOS@centos.org >> http://lists.centos.org/mailman/listinfo/centos >> > gedit .bashrc > > # User specific aliases and functions > > PS1="[johan@W] $> " > > [johan@~] $> cd /bin > [johan@bin] $> > [johan@bin] $> su root > Password: > [root@unknown2a6800000000 bin]# > > Now only need to fix superuser. > Kindly where/how please * man hostname * vim /etc/sysconfig/network _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos |
Terminal - name too long
Vnpenguin wrote:
> On Thu, Nov 25, 2010 at 23:02, Johan Scheepers <johansche@telkomsa.net> wrote: > >> John R Pierce wrote: >> >>> On 11/25/10 12:36 PM, Johan Scheepers wrote: >>> >>>> Good day, >>>> >>>> >>>>> [johan@unknown2a6800000000 ~]$ >>>>> >>>> How/where could I make the above a lot shorter please. >>>> >>> A) choose a shorter hostname >>> >>> B) change your default prompt via an export PS1=.... in $HOME/.bashrc >>> >>> >>> see >>> http://tldp.org/HOWTO/Bash-Prompt-HOWTO/bash-prompt-escape-sequences.html for >>> the PS1 options... >>> _______________________________________________ >>> CentOS mailing list >>> CentOS@centos.org >>> http://lists.centos.org/mailman/listinfo/centos >>> >>> >> gedit .bashrc >> >> # User specific aliases and functions >> >> PS1="[johan@W] $> " >> >> [johan@~] $> cd /bin >> [johan@bin] $> >> [johan@bin] $> su root >> Password: >> [root@unknown2a6800000000 bin]# >> >> Now only need to fix superuser. >> Kindly where/how please >> > > * man hostname > * vim /etc/sysconfig/network > _______________________________________________ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos > Hi Johan, Follow exactly the same procedure that you did with your own login. Edit .basrc in /root and change the PS1 setting there. You have to be root to be able to do this. ChrisG _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos |
Terminal - name too long
Chris Geldenhuis wrote:
> Vnpenguin wrote: >> On Thu, Nov 25, 2010 at 23:02, Johan Scheepers <johansche@telkomsa.net> wrote: >> >>> John R Pierce wrote: >>> >>>> On 11/25/10 12:36 PM, Johan Scheepers wrote: >>>> >>>>> Good day, >>>>> >>>>> >>>>>> [johan@unknown2a6800000000 ~]$ >>>>>> >>>>> How/where could I make the above a lot shorter please. >>>>> >>>> A) choose a shorter hostname >>>> >>>> B) change your default prompt via an export PS1=.... in $HOME/.bashrc >>>> >>>> >>>> see >>>> http://tldp.org/HOWTO/Bash-Prompt-HOWTO/bash-prompt-escape-sequences.html for >>>> the PS1 options... >>>> _______________________________________________ >>>> CentOS mailing list >>>> CentOS@centos.org >>>> http://lists.centos.org/mailman/listinfo/centos >>>> >>>> >>> gedit .bashrc >>> >>> # User specific aliases and functions >>> >>> PS1="[johan@W] $> " >>> >>> [johan@~] $> cd /bin >>> [johan@bin] $> >>> [johan@bin] $> su root >>> Password: >>> [root@unknown2a6800000000 bin]# >>> >>> Now only need to fix superuser. >>> Kindly where/how please >>> >> * man hostname >> * vim /etc/sysconfig/network >> _______________________________________________ >> CentOS mailing list >> CentOS@centos.org >> http://lists.centos.org/mailman/listinfo/centos >> > Hi Johan, > > Follow exactly the same procedure that you did with your own login. Edit > .basrc in /root and change the PS1 setting there. You have to be root to > be able to do this. > > ChrisG > _______________________________________________ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos > Thanks Chris, That is what I was looking for. Regards Johan _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos |
| All times are GMT. The time now is 03:04 PM. |
VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.