Updating the new host name in the shell prompt
Last updated on JULY 12, 2018
Applies to:Linux OS - Version Oracle Linux 6.0 to Oracle Linux 7.0 [Release OL6 to OL7]
To update the new hostname in the shell prompt.
Note: In this case, the hostname(OracleLinux6) has already been updated in /etc/sysconfig/network and /etc/hosts file, but still needs to be updated in the shell prompt.
Example - to change the old shell prompt as below:
From : [root@OL6 ~]#
To : [root@OracleLinux6 ~]#
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms