Detailed explanation of viewing commands in LINUX operating system

In Linux systems, you can use some commands to view detailed information about the operating system. The following are several commonly used commands:

1. `uname -a`: Display detailed information about the kernel, including kernel version, host name, processor architecture, etc. 
   Example output:
   Linux yourhostname 4.15.0-47-generic #50-Ubuntu SMP Wed Mar 13 10:44:52 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

示例:
[root@ecm-w4b4d-0001 ~]# uname -a
Linux ecm-w4b4d-0001 4.19.90-52.15.v2207.ky10.x86_64 #1 SMP Thu Nov 24 21:50:03 CST 2022 x86_64 x86_64 x86_64 GNU/Linux

Among them: ecm-w4b4d-0001 represents the host name

          4.19.90-52.15.v2207.ky10.x86_64: This is the kernel version number

          #1 SMP Thu Nov 24 21:50:03 CST 2022: Represents the build information of the kernel. It tells you when the kernel was built and what options were used when building it.

           x86_64 x86_64 x86_64: This is the processor architecture information. In this example, the representation is 64-bit x86 architecture

          GNU/Linux: Indicates that the type of operating system is GNU/Linux. In a Linux system, the kernel is Linux, and the user space is composed of tools and libraries provided by GNU.

2. `lsb_release -a`: Displays the detailed information of the Linux distribution, including the release name, version number and description.
   
   Example output:
   ```
   Distributor ID: Ubuntu
   Description: Ubuntu 18.04.2 LTS
   Release: 18.04
   Codename: bionic
   ```

3. `cat /etc/os-release`: Displays information about the operating system, including name, version, ID, ID_LIKE, etc.

   示例输出:
   ```
   NAME="Ubuntu"
   VERSION="18.04.2 LTS (Bionic Beaver)"
   ID=ubuntu
   ID_LIKE=debian
   PRETTY_NAME="Ubuntu 18.04.2 LTS"
   VERSION_ID="18.04"
   HOME_URL="https://www.ubuntu.com/"
   SUPPORT_URL="https://help.ubuntu.com/"
   BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
   PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
   ```

These commands can be executed in the terminal and the corresponding output information will be displayed. Please note that the output of the command may vary depending on the Linux distribution and version you are using.

Guess you like

Origin blog.csdn.net/u013933709/article/details/130922357