在centos6自带ifconfig
在centos7默认不带ifconfig,需要自己安装
ifconfig命令用来配置或查看网卡接口,常见用法如下:
安装ifconfig命令
[root
mysql~]#yuminstallnet-tools-y操作系统基本配置查询
1、查看操作系统版本
[root
localhost~]#cat/etc/redhat-releaseCentOSLinuxrelease8.2.(Core)
[root
localhost~]#2、查看操作系统内核版本
[root
localhost~]#uname-r4.18.0-.el8.x86_64
3、查看操作系统详细信息
[root
localhost~]#more/etc/*release::::::::::::::
/etc/centos-release
::::::::::::::
CentOSLinuxrelease8.2.(Core)
::::::::::::::
/etc/os-release
::::::::::::::
NAME="CentOSLinux"
VERSION="8(Core)"
ID="centos"
ID_LIKE="rhelfedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOSLinux8(Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="