[Linux] [Ubuntu]查詢硬碟資訊的指令

 看 cpu

iris@server:~$ lscpu
架構: x86_64
CPU 作業模式: 32-bit, 64-bit
Byte Order: Little Endian
Address sizes: 46 bits physical, 48 bits virtual
CPU(s): 32
On-line CPU(s) list: 0-31
每核心執行緒數: 1
每通訊端核心數: 24
Socket(s): 1
NUMA 節點: 1
供應商識別號: GenuineIntel
CPU 家族: 6
型號: 183
Model name: 13th Gen Intel(R) Core(TM) i9-13900K
製程: 1
CPU MHz: 3000.000
CPU max MHz: 5800.0000
CPU min MHz: 800.0000
BogoMIPS: 5990.40
虛擬: VT-x
L1d 快取: 576 KiB
L1i 快取: 384 KiB
L2 快取: 24 MiB
NUMA node0 CPU(s): 0-31
...

 看硬碟(紅色為自己標示出來的硬碟)

iris@server:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 4K 1 loop /snap/bare/5
...
loop12 7:12 0 54.2M 1 loop /snap/snap-store/558
loop13 7:13 0 496.9M 1 loop /snap/gnome-42-2204/132
loop14 7:14 0 65.2M 1 loop /snap/gtk-common-themes/1519
sda 8:0 0 9.1T 0 disk /mnt/10T
nvme0n1 259:0 0 1.8T 0 disk
├─nvme0n1p1 259:1 0 512M 0 part /boot/efi
└─nvme0n1p2 259:2 0 1.8T 0 part /



iris@server:~$ sudo blkid
[sudo] thb-drone 的密碼:
/dev/nvme0n1p2: UUID="1203fbc5..." TYPE="ext4" PARTUUID="8686f1c3..."
/dev/loop0: TYPE="squashfs"
...
/dev/nvme0n1p1: UUID="3E3..." TYPE="vfat" PARTLABEL="EFI System Partition" PARTUUID="..."
/dev/sda: LABEL="10T" UUID="9effa6c.." TYPE="ext4"

留言

這個網誌中的熱門文章

[MAC] MacBook Air 2012 手動換硬碟

[PHP] 將陣列中重複的值刪除最好方法 array_flip (移除陣列中重複的值)

[Linux] 看懂 Linux Memory Usage 記憶體使用率