Viewing System Information

  • View the system information.

    bash
    cat /etc/os-release

    For example, the command and output are as follows:

    bash
    $ cat /etc/os-release
    NAME="openEuler"
    VERSION="22.03 (LTS-SP4)"
    ID="openEuler"
    VERSION_ID="22.03"
    PRETTY_NAME="openEuler 22.03 (LTS-SP4)"
    ANSI_COLOR="0;31"
  • View system resource information.

    Run the following command to view the CPU information:

    bash
    lscpu

    Run the following command to view the memory information:

    bash
    free

    Run the following command to view the disk information:

    bash
    fdisk -l

    View the real-time system resource information.

    bash
    top