(LINUX view system configuration commonly used commands)

1. Check the CPU
CAT / proc / cpuinfo | grep "Model name"
CAT "Model name" / proc / cpuinfo
CAT "Model name" / proc / cpuinfo | Cut -f2 -d:
2, view memory
grep MemTotal / proc / meminfo
-g Free
Free -m
. 3, view CPU bits (32 or 64)
the getconf LONG_BIT
. 4, see linux version (release)
CAT / etc / RedHat-release
More / etc / issue
More / proc / version
. 5, core edition
-R & lt the uname
the uname -a
. 6, when viewing zone
DATE -R & lt
. 7, the host name
hostname
. 8, see selinux case
sestatus
the sELinux Status: Disabled
network
. 9, the IP
the ifconfig | grep 'inet addr:' | grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1}'
10, the gateway
CAT / etc / sysconfig / Network
11, the DNS
CAT /etc/resolv.conf
12, installed packages
RPM -qa | WC the -l
yum List Installed | WC the -l
13, disk and partition
df -h
du * -SH
14, see jdk version
jdk -version

15, to see whether a virtual machine linux

dmidecode -s system-product-name

16, Linux how to view the disk has been successfully mounted

df -h and fdisk -l

17

Guess you like

Origin blog.csdn.net/weixin_37565541/article/details/90055025