I have an ec2 instance. When I log in, it will prompt this:
I want to rewrite the ip-10-128-80-10 to some nickname, such as us1, us2, us3.
How to set it ?
That's the system's hostname, which you can set in
Next, execute this as root
Note that you don't have to change the hostname if you prefer not to. If you just want to change the prompt, you can set the shell variable PS1. At the moment, it's probably set to something like this:
You can set it to anything you like, e.g.