Linux type version memory disk query command introduction

Linux type version memory disk query command introduction

1. First, let’s have a general introduction to the version content of the Linux system.

1. Differences between kernel version and release version

As 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 centos

Generally, 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/version

Linux 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 -a

Linux 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
Distributor ID: CentOS
Description: CentOS Linux release 7.2.1511 (Core)
Release: 7.2.1511
Codename: Core

(b) cat /etc/redhat-release

CentOS Linux release 7.2.1511 (Core)

(c)cat /etc/issue

My system did not execute it, so different systems may have different commands;

Memory

1. 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:
  • Commands to check CPU model, memory size, and hard disk space under Linux (detailed explanation)
  • How to Check Memory Usage in Linux
  • How to check disk space using linux command

<<:  Introduction to MySQL MHA operation status monitoring

>>:  Html+css to achieve pure text and buttons with icons

Recommend

Solution to "No input file specified" in nginx+php

Today, the error "No input file specified&qu...

Instructions for using MySQL isolation Read View

Which historical version can the current transact...

Methods for deploying MySQL services in Docker and the pitfalls encountered

I have been learning porters recently. I feel lik...

MySQL common statements for viewing transactions and locks

Some common statements for viewing transactions a...

js to write the carousel effect

This article shares the specific code of js to ac...

How to implement controllable dotted line with CSS

Preface Using css to generate dotted lines is a p...

SQL Practice Exercise: Online Mall Database Product Category Data Operation

Online shopping mall database-product category da...

Detailed explanation of JavaScript object conversion to primitive value

Table of contents Object.prototype.valueOf() Obje...

How to install mysql via yum on centos7

1. Check whether MySQL is installed yum list inst...

javascript to switch pictures by clicking a button

This article example shares the specific code of ...

Summary of the most commonly used knowledge points about ES6 new features

Table of contents 1. Keywords 2. Deconstruction 3...

Summary of the use of MySQL date and time functions

This article is based on MySQL 8.0 This article i...

JavaScript canvas realizes dynamic point and line effect

This article shares the specific code for JavaScr...