I am trying to change my prompt to my hostname (Aidan) I used
PS1=“\h \d \u]"
when I used it, it only changed to “localhost” does anyone know what I am doing wrong? I have the user created in the GECOS field with the full name.
You need to change the contents of /etc/hostname to the actual name of your host, and then reboot. You can change the name of your host for the current session using the 'hostname' command (if logged in as root), but any change you make will be lost on the next reboot if you have not also updated /etc/hostname .