How to view architecture and system in Linux

How to view architecture and system in Linux

On a Linux system, you can use some commands to view the system's architecture and system information. Here are some commonly used commands:

  1. View system architecture:

    Use unamethe command to display system architecture information. In particular, use the -mor --machineparameter to view the schema.

    uname -m
    

    Example output might be x86_64(64-bit systems) or i686(32-bit systems) etc.

  2. View system information:

    • Use uname: View kernel and operating system information:

      uname -a
      

      Sample output may include information such as kernel version, system architecture, hostname, etc.

    • Use /etc/os-releasethe file to view system information:

      cat /etc/os-release
      

      This file contains detailed information about the Linux distribution, including version, ID, name, etc.

    • Use lsb_releasethe command to view the information (if the LSB package is installed):

      lsb_release -a
      

      This command provides information about the system release.

  3. View hardware information:

    • Use lscputo view CPU information:

      lscpu
      

      This command will display detailed information about the CPU, including architecture, number of cores, number of threads, etc.

    • Use lsblkto view block device information:

      lsblk
      

      This command lists block devices on the system, such as hard drives and partition information.

    • Use freeto view memory information:

      free -h
      

      This command displays system memory usage.

These commands can help you obtain basic information about your Linux system, including architecture, kernel version, distribution, etc. Choose the appropriate command based on the specific information you need to view.

Guess you like

Origin blog.csdn.net/wykqh/article/details/135106666