[CentOS] Terminal - name too long

Thu Nov 25 22:02:51 UTC 2010
Johan Scheepers <johansche at telkomsa.net>

John R Pierce wrote:
> On 11/25/10 12:36 PM, Johan Scheepers wrote:
>> Good day,
>>
>>> [johan at 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 at centos.org
> http://lists.centos.org/mailman/listinfo/centos
> 
gedit .bashrc

# User specific aliases and functions

PS1="[johan@\W] \$> "

[johan@~] $> cd /bin
[johan at bin] $>
[johan at bin] $> su root
Password:
[root at unknown2a6800000000 bin]#

Now only need to fix superuser.
Kindly where/how please
Johan