By Kabeer Khan on Friday, 28 September 2018
Category: Apps DBA

[SOLVED] Linux 7 user shows -bash-4.2 instead of username like [root@localhost ~]

Issue

On login Oracle Linux 7.5 user shows -bash-4.2 instead of username like [root@localhost ~]

Solution

Use this command in your terminal to fix this issue: 

If you want to show this prompt show after you reboot, you can try this (with su):

Environment
+ Oracle Linux 7.5

Leave Comments