My Oracle Support Banner

Updating the new host name in the shell prompt (Doc ID 2421467.1)

Last updated on AUGUST 29, 2023

Applies to:

Linux OS - Version Oracle Linux 6.0 to Oracle Linux 7.0 [Release OL6 to OL7]
Oracle Cloud Infrastructure - Version N/A and later
Linux x86-64


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 ~]#




To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.