Label: I. View Linux hostname
[root @localhost ~]# hostname
localhost.localdomain
ii. Rename hostname (in the case of new host name h4ckg3h2y1)
Step 1:
[root @localhost ~]# hostname h4ckg3h2y1
Step 2: Modify the /etc/ sysconfig/network configuration file to use a new hostname for next restart
Edit / etc/ sysconfig/network file, modify HOStNAME=h4ckg3h2y1
Step 3: Modify the domain parsing file/ etc/ hosts to enable the application to interpret the new hostname
127.0.0.1 h4ckg3h2y1 localhost
::1 h4ckg3h2y1 localhost
未经允许不得转载:萌萌Apprentissage » linux Host Rename
linux One Chinese script
Google shell enable enhanced mode 4 nuclear 16G RAM
Tmux use tutorial
Screen's summary
I'm gonna get you a new one, shell.cloud.google on the line.
Linux Memory Clearing