Running an Amazon EC2 instance with Ubuntu 22.04. The elastic ip address is 52.120.94.72.
I want the bash prompt to read like this (no space)
della@52.120.94.72:~/working_directory$
Based on some advice on the net, I edited the top of the /etc/hosts file like this
127.0.0.1 localhost 52.120.94.72
and even added the following line to .bashrc
export PS1='\[\033[0;32m\]\u@\h:\[\033[36m\]\W\[\033[0m\] \$ '
But it is not working, and currently, the bash prompt looks like
della@52:~ $
which is ridiculous. How to make it appear like I want. Also, is the $HOSTNAME environment variable important in this context? Particularly, if I run some web server in this instance, I can make calls just using the ip address, right? No need for the hostname.