The following steps show how to do that.
In your file manager press Ctrl + H to show hidden files.
Open the “.bashrc” file in a text editor.
Find the line that starts with PS1=. The complete line should be something like this: PS1=’[\u@\h \W]$ ’ where \u represents the username, \h the hostname and \W your location in the file structure.
To remove the username and hostname from the prompt, simply remove the \u@\h part so it looks like this: PS1=’[\W]$ ‘.
For pure minimalism, you can remove everything and just leave the prompt sign: PS1=’$ ‘.
Once you are done with the edit, save the file. Now relaunch your terminal, and the changes will be reflected immediately. If you are not able to restart the terminal because of a running session, type source ~/.bashrc instead. It’s that simple.