When we connect to aws ec2 instance using ubuntu server, after login I see the following prompt at the bash shell
ubuntu@ip-xx-xx-xx-xx
Is there there a way I can change that text without effect any networking thing in server?
I have searched but didn't find anything that can guide me better in this area. I'd appreciate any help offered.
Best Answer
The key phrase in Google that you want is "how to change ubuntu command prompt", or perhaps "how change bash command prompt". This thread is the second hit for the first query. I'll copy it in here as per SF preferences
To change it for the current terminal instance only Just enter
To change it "permanently"
In your ~/.bashrc, find the following section:
Remove the @\h, and replace the \w with an uppercase \W, so that it becomes: