前言华为是OpenEuler项目的发起者和主要贡献者之一,为OpenEuler提供了许多技术支持和资源投入。OpenEuler是基于华为的欧拉操作系统(EulerOS)发展而来的开源版本,旨在为用户提供更好的可以替换CentOS等操作系统的选择。 一、要查看操作系统信息,请在终端中运行以下命令:[root@5233localhost ~]$ cat /etc/os-releaseNAME="openEuler"VERSION="22.03 (LTS-SP2)"ID="openEuler"VERSION_ID="22.03"PRETTY_NAME="openEuler 22.03 (LTS-SP2)"ANSI_COLOR="0;31" 二、查看CPU架构信息,请在终端中运行以下命令:[root@5233localhost ~]$ lscpu 架构: x86_64 CPU 运行模式: 32-bit, 64-bit Address sizes: 45 bits physical, 48 bits virtual 字节序: Little Endian CPU: 2 在线 CPU 列表: 0,1厂商 ID: GenuineIntel BIOS Vendor ID: GenuineIntel 型号名称: 12th Gen Intel(R) Core(TM) i7-12700 BIOS Model name: 12th Gen Intel(R) Core(TM) i7-12700 CPU 系列: 6型号: 151每个核的线程数: 1每个座的核数: 1座: 2步进: 2BogoMIPS: 4224.00标记: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse 2 ss syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon rep_good nopl xtopology tsc_reliable nonstop_tsc cpuid pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadl ine_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch cpuid_fault invpcid_sin gle ssbd ibrs ibpb stibp ibrs_enhanced fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdse ed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves arat umip pku ospke gfni vaes vpclmulqdq rdpid movdiri movdir64b fsrm md_clear flush_l1d arch_capabilities Virtualization features: 超管理器厂商: VMware 虚拟化类型: 完全 Caches (sum of all): L1d: 96 KiB (2 instances) L1i: 64 KiB (2 instances) L2: 2.5 MiB (2 instances) L3: 50 MiB (2 instances)NUMA: NUMA 节点: 1 NUMA 节点0 CPU: 0,1Vulnerabilities: Itlb multihit: KVM: Mitigation: VMX unsupported L1tf: Not affected Mds: Not affected Meltdown: Not affected Mmio stale data: Not affected Retbleed: Not affected Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization Spectre v2: Vulnerable: eIBRS with unprivileged eBPF Srbds: Not affected Tsx async abort: Not affected 三、要查看内存使用情况,请在终端中运行以下命令:[root@5233localhost ~]$ free total used free shared buff/cache available Mem: 7580224 449588 7068136 9204 310552 7130636Swap: 8237052 0 8237052 四、要查看磁盘分区信息,请在终端中运行以下命令:[root@5233localhost ~]$ fdisk -lDisk /dev/sda:150 GiB,161061273600 字节,314572800 个扇区 磁盘型号:VMware Virtual S 单元:扇区 / 1 * 512 = 512 字节 扇区大小(逻辑/物理):512 字节 / 512 字节 I/O 大小(最小/最佳):512 字节 / 512 字节 磁盘标签类型:dos 磁盘标识符:0xa3d292ac 设备 启动 起点 末尾 扇区 大小 Id 类型 /dev/sda1 * 2048 2099199 2097152 1G 83 Linux /dev/sda2 2099200 314572799 312473600 149G 8e Linux LVM Disk /dev/mapper/openeuler_5233localhost-root:141.14 GiB,151548592128 字节,295993344 个扇区 单元:扇区 / 1 * 512 = 512 字节 扇区大小(逻辑/物理):512 字节 / 512 字节 I/O 大小(最小/最佳):512 字节 / 512 字节 Disk /dev/mapper/openeuler_5233localhost-swap:7.86 GiB,8434745344 字节,16474112 个扇区 单元:扇区 / 1 * 512 = 512 字节 扇区大小(逻辑/物理):512 字节 / 512 字节 I/O 大小(最小/最佳):512 字节 / 512 字节 五、要查看实时系统状态信息,请在终端中运行以下命令:这将打开一个交互式的界面,显示系统的实时状态信息,包括进程、CPU使用率、内存使用情况等。您可以使用键盘上的方向键来浏览不同的选项,并按下“q”键退出top命令。 [root@5233localhost ~]$ toptop - 21:48:54 up 1:21, 2 users, load average: 0.00, 0.00, 0.00Tasks: 129 total, 1 running, 128 sleeping, 0 stopped, 0 zombie %Cpu(s): 0.0 us, 4.2 sy, 0.0 ni, 91.7 id, 0.0 wa, 0.0 hi, 4.2 si, 0.0 st MiB Mem : 7402.6 total, 6900.8 free, 440.0 used, 304.0 buff/cache MiB Swap: 8044.0 total, 8044.0 free, 0.0 used. 6962.6 avail Mem PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 1 root 20 0 101660 15508 8784 S 0.0 0.2 0:01.42 systemd 2 root 20 0 0 0 0 S 0.0 0.0 0:00.01 kthreadd 3 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 rcu_gp 4 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 rcu_par_gp 6 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 kworker/0:0H-events_highpri 8 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 mm_percpu_wq 9 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_tasks_rude_ 10 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_tasks_trace 11 root 20 0 0 0 0 S 0.0 0.0 0:00.01 ksoftirqd/0 12 root 20 0 0 0 0 I 0.0 0.0 0:01.02 rcu_sched 13 root rt 0 0 0 0 S 0.0 0.0 0:00.03 migration/0 14 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuhp/0 15 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuhp/1 16 root rt 0 0 0 0 S 0.0 0.0 0:00.74 migration/1 17 root 20 0 0 0 0 S 0.0 0.0 0:00.03 ksoftirqd/1 19 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 kworker/1:0H-events_highpri 22 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kdevtmpfs 23 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 netns 24 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kauditd 27 root 20 0 0 0 0 S 0.0 0.0 0:00.00 khungtaskd 28 root 20 0 0 0 0 S 0.0 0.0 0:00.00 oom_reaper 29 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 writeback 30 root 20 0 0 0 0 S 0.0 0.0 0:00.16 kcompactd0 31 root 25 5 0 0 0 S 0.0 0.0 0:00.00 ksmd 32 root 39 19 0 0 0 S 0.0 0.0 0:00.09 khugepaged 49 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 cryptd 94 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 kintegrityd 95 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 kblockd 96 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 blkcg_punt_bio 97 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 tpm_dev_wq 98 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 md 99 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 edac-poller100 root -51 0 0 0 0 S 0.0 0.0 0:00.00 watchdogd101 root 0 -20 0 0 0 I 0.0 0.0 0:00.05 kworker/0:1H-kblockd114 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kswapd0116 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 kthrotld117 root -51 0 0 0 0 S 0.0 0.0 0:00.00 irq/24-pciehp118 root -51 0 0 0 0 S 0.0 0.0 0:00.00 irq/25-pciehp119 root -51 0 0 0 0 S 0.0 0.0 0:00.00 irq/26-pciehp120 root -51 0 0 0 0 S 0.0 0.0 0:00.00 irq/27-pciehp121 root -51 0 0 0 0 S 0.0 0.0 0:00.00 irq/28-pciehp122 root -51 0 0 0 0 S 0.0 0.0 0:00.00 irq/29-pciehp123 root -51 0 0 0 0 S 0.0 0.0 0:00.00 irq/30-pciehp124 root -51 0 0 0 0 S 0.0 0.0 0:00.00 irq/31-pciehp125 root -51 0 0 0 0 S 0.0 0.0 0:00.00 irq/32-pciehp126 root -51 0 0 0 0 S 0.0 0.0 0:00.00 irq/33-pciehp127 root -51 0 0 0 0 S 0.0 0.0 0:00.00 irq/34-pciehp128 root -51 0 0 0 0 S 0.0 0.0 0:00.00 irq/35-pciehp129 root -51 0 0 0 0 S 0.0 0.0 0:00.00 irq/36-pciehp130 root -51 0 0 0 0 S 0.0 0.0 0:00.00 irq/37-pciehp131 root -51 0 0 0 0 S 0.0 0.0 0:00.00 irq/38-pciehp132 root -51 0 0 0 0 S 0.0 0.0 0:00.00 irq/39-pciehp133 root -51 0 0 0 0 S 0.0 0.0 0:00.00 irq/40-pciehp134 root -51 0 0 0 0 S 0.0 0.0 0:00.00 irq/41-pciehp135 root -51 0 0 0 0 S 0.0 0.0 0:00.00 irq/42-pciehp136 root -51 0 0 0 0 S 0.0 0.0 0:00.00 irq/43-pciehp137 root -51 0 0 0 0 S 0.0 0.0 0:00.00 irq/44-pciehp138 root -51 0 0 0 0 S 0.0 0.0 0:00.00 irq/45-pciehp139 root -51 0 0 0 0 S 0.0 0.0 0:00.00 irq/46-pciehp140 root -51 0 0 0 0 S 0.0 0.0 0:00.00 irq/47-pciehp141 root -51 0 0 0 0 S 0.0 0.0 0:00.00 irq/48-pciehp142 root -51 0 0 0 0 S 0.0 0.0 0:00.00 irq/49-pciehp143 root -51 0 0 0 0 S 0.0 0.0 0:00.00 irq/50-pciehp144 root -51 0 0 0 0 S 0.0 0.0 0:00.00 irq/51-pciehp145 root -51 0 0 0 0 S 0.0 0.0 0:00.00 irq/52-pciehp146 root -51 0 0 0 0 S 0.0 0.0 0:00.00 irq/53-pciehp147 root -51 0 0 0 0 S 0.0 0.0 0:00.00 irq/54-pciehp148 root -51 0 0 0 0 S 0.0 0.0 0:00.00 irq/55-pciehp149 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 acpi_thermal_pm150 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 kmpath_rdacd151 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 kaluad[root@5233localhost ~]$ |
|
来自: LibraryPKU > 《OS》