1. First, let’s have a general introduction to the version content of the Linux system.1. Differences between kernel version and release versionAs I understand it, the kernel version refers to the most basic code in Linux, such as Linux version 3.10.0-327.22.2.el7.x86_64 A release version is a version of the kernel with a lot of software code added by the publisher, such as CentOS Linux release 7.2.1511 (Core) 2. The difference between redhat and centosGenerally, we use CentOS in Alibaba Cloud, but some people say it is Red Hat. In fact, the two are similar. Red Hat is the full name of Red Hat Enterprise Linux (hereinafter referred to as RHEL), which is generally provided to enterprises for paid use and includes corresponding commercial services; CentOS is a cloned version of RHEL, or a free version, and of course does not provide commercial services; In a word, you can simply think that CentOS is a free Red Hat, so you cannot enjoy the technical support and services of Red Hat; Let's just casually assume that they are the same thing. 3. Check the Linux system kernel version(1)cat /proc/versionLinux version 3.10.0-327.22.2.el7.x86_64 ([email protected]) (gcc version 4.8.3 20140911 (Red Hat 4.8.3-9) (GCC) ) #1 SMP Thu Jun 23 17:05:11 UTC 2016 (2)uname -aLinux iZuf62oby5qekm4qmwbmrcZ 3.10.0-327.22.2.el7.x86_64 #1 SMP Thu Jun 23 17:05:11 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux 4. Check the Linux system release version(a)lsb_release -a LSB Version: :core-4.1-amd64:core-4.1-noarch (b) cat /etc/redhat-releaseCentOS Linux release 7.2.1511 (Core) (c)cat /etc/issueMy system did not execute it, so different systems may have different commands; Memory1. View all memory$ cat /proc/meminfo | grep MemTotal Note: MemTotal 2. Check free memory$ cat /proc/meminfo | grep MemFree 3. Memory related queries$ cat /proc/meminfo 3. Disk$ df -hl df -hl Check the remaining disk space df -h Check the partition size of each root path du -sh [directory name] Return the size of the directory du -sm [folder] Return the total number of MB of the folder du -h [directory name] Check the size of all files in the specified folder (including subfolders) This is the end of this article about the Linux type version memory disk query command introduction. For more relevant Linux type version memory disk query command content, please search 123WORDPRESS.COM's previous articles or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Introduction to MySQL MHA operation status monitoring
>>: Html+css to achieve pure text and buttons with icons
Today, the error "No input file specified&qu...
Which historical version can the current transact...
I have been learning porters recently. I feel lik...
Some common statements for viewing transactions a...
This article shares the specific code of js to ac...
Preface Using css to generate dotted lines is a p...
Table of contents animate() animation method Anim...
Online shopping mall database-product category da...
This article uses the crontab command in the Linu...
Table of contents Object.prototype.valueOf() Obje...
1. Check whether MySQL is installed yum list inst...
This article example shares the specific code of ...
Table of contents 1. Keywords 2. Deconstruction 3...
This article is based on MySQL 8.0 This article i...
This article shares the specific code for JavaScr...