Here’s my favorite Linux prompt.
PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' |
Add to end of your .bashrc to make it permanent.
cloud engineer
Here’s my favorite Linux prompt.
PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' |
PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
Add to end of your .bashrc to make it permanent.
If you need to change your system’s hostname, use hostname or hostnamectl commands.
hostname servername
hostnamectl set-hostname servername |
hostname servername hostnamectl set-hostname servername
You can add the hostname to these 2 files and reboot.
vi /etc/hostname vi /etc/hosts reboot |
vi /etc/hostname vi /etc/hosts reboot
Without a reboot. Add the hostname to these 2 files.
vi /etc/hostname vi /etc/hosts |
vi /etc/hostname vi /etc/hosts
And add a hostname entry to 127.0.0.1 in /etc/hosts.
127.0.0.1 servername |
127.0.0.1 servername
That’s all she wrote.