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:
-
View system architecture:
Use
uname
the command to display system architecture information. In particular, use the-m
or--machine
parameter to view the schema.uname -m
Example output might be
x86_64
(64-bit systems) ori686
(32-bit systems) etc. -
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-release
the 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_release
the command to view the information (if the LSB package is installed):lsb_release -a
This command provides information about the system release.
-
-
View hardware information:
-
Use
lscpu
to view CPU information:lscpu
This command will display detailed information about the CPU, including architecture, number of cores, number of threads, etc.
-
Use
lsblk
to view block device information:lsblk
This command lists block devices on the system, such as hard drives and partition information.
-
Use
free
to 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.