Answers for "linux change hostname"

8

linux change hostname

sudo nano /etc/hostname
sudo nano /etc/hosts
sudo reboot
Posted by: Guest on April-14-2020
4

linux change username

# login as root and make sure that there are no active processes for user
usermod -l NEW_USERNAME OLD_USERNAME
# if user is running kill user w the following command
userUID=$(id -u OLD_USERNAME) && pkill -U $userUID
Posted by: Guest on May-05-2020
0

centos change hostname

# hostnamectl set-hostname your-new-hostname
Posted by: Guest on December-03-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language