Tuesday 16 September 2014

VMware ESXi 5.5: Change Bash Prompt To Display Hostname

To change the bash prompt of an ESXi host to display the hostname

SSH to the host
change directory to /etc
vi profile.local and add the following entry:

export PS1="\h> "

Save, exit and reconnect to see the new prompt.

No comments:

Post a Comment