[CentOS] Terminal - name too long

John R Pierce pierce at hogranch.com
Thu Nov 25 20:39:52 UTC 2010


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...



More information about the CentOS mailing list