三白草

首页 » 常识 » 常识 » Linux上OSCPU内存硬盘
TUhjnbcbe - 2021/1/27 18:14:00
白癜风有哪些什么症状         http://m.39.net/pf/a_6947166.html

在centos6自带ifconfig

在centos7默认不带ifconfig,需要自己安装

ifconfig命令用来配置或查看网卡接口,常见用法如下:

安装ifconfig命令

[root

mysql~]#yuminstallnet-tools-y

操作系统基本配置查询

1、查看操作系统版本

[root

localhost~]#cat/etc/redhat-release

CentOSLinuxrelease8.2.(Core)

[root

localhost~]#

2、查看操作系统内核版本

[root

localhost~]#uname-r

4.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="

1
查看完整版本: Linux上OSCPU内存硬盘