Ubuntu
There are many ways to view related information such as CPU
architecture , system information, kernel version, and version code. This article introduces several commonly used commands.
x86
The architecture is different from the architecture of ARM
the architecture CPU
. If the echo is aarch64
displayed ARM
the architecture, if the echo is x86_64
displayed as x86
the architecture, refer to the article " CPU Architecture (x86/ARM) Introduction ".
uname
root@k8s-master:~# uname
Linux
root@k8s-master:~# uname -a
Linux k8s-master 5.15.0-1027-raspi #29-Ubuntu SMP PREEMPT Mon Apr 3 10:12:21 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux
root@k8s-master:~# uname -r
5.15.0-1027-raspi
root@k8s-master:~# uname -m
aarch64
arch
root@k8s-master:~# arch
aarch64
Ubuntu
The basic version number is composed of dates. For example, Ubuntu 22.04
means the version released in April 2022. Ubuntu
When selecting the version, it is better to choose LTS(Long Term Support)
the version , and each Ubuntu
version has a code name, which will be used when installing the software.
Ubuntu LTS
The code numbers of each version are as follows:
- Ubuntu 12.04 (LTS) is codenamed precise
- Ubuntu 14.04 (LTS) is codenamed trusty
- Ubuntu 16.04 (LTS) is codenamed xenial
- Ubuntu 18.04 (LTS) codenamed bionic
- Ubuntu 20.04 (LTS) codenamed focal
- Ubuntu 22.04 (LTS) codenamed jammy
lsb_release
root@k8s-master:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.2 LTS
Release: 22.04
Codename: jammy
root@k8s-master:~# lsb_release -c
Codename: jammy
lscpu
root@k8s-master:~# lscpu
Architecture: aarch64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Vendor ID: ARM
Model name: Cortex-A72
Model: 3
Thread(s) per core: 1
Core(s) per cluster: 4
Socket(s): -
Cluster(s): 1
Stepping: r0p3
CPU max MHz: 1800.0000
CPU min MHz: 600.0000
BogoMIPS: 108.00
Flags: fp asimd evtstrm crc32 cpuid
Caches (sum of all):
L1d: 128 KiB (4 instances)
L1i: 192 KiB (4 instances)
L2: 1 MiB (1 instance)
Vulnerabilities:
Itlb multihit: Not affected
L1tf: Not affected
Mds: Not affected
Meltdown: Not affected
Mmio stale data: Not affected
Retbleed: Not affected
Spec store bypass: Vulnerable
Spectre v1: Mitigation; __user pointer sanitization
Spectre v2: Vulnerable
Srbds: Not affected
Tsx async abort: Not affected
/proc/version
root@k8s-master:~# cat /proc/version
Linux version 5.15.0-1027-raspi (buildd@bos02-arm64-011) (gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #29-Ubuntu SMP PREEMPT Mon Apr 3 10:12:21 UTC 2023