# 修改主机名
```bash
# 查看当前主机名
hostname
hostnamectl
# 修改配置文件, /etc/hostname文件保存主机名, /etc/hosts文件为网络主机名
sudo vim /etc/hostname
```
# 查看系统版本
```bash
# 简要
cat /etc/issue
# 具体
cat /etc/lsb-release
# 内核
uname -a
# 长具体
cat /proc/version
# 具体
cat /etc/os-release
# 简单
lsb_release -d
```