mac 查看磁盘
mac 查看磁盘 diskutil list diskutil list 列出机器所有的磁盘信息, 包括插入的移动磁盘, 每个磁盘都有编号, 类似 /dev/disk0, /dev/disk1, 每个磁盘都会被分配一个编号: disk0, disk1 类似. df -h Filesystem Size Used Avail Capacity iused ifree %iused Mounted on /dev/disk1s6 234Gi 10Gi 185Gi 6% 487356 2448638004 0% / devfs 195Ki 195Ki 0Bi 100% 681 0 100% /dev /dev/disk1s1 234Gi 24Gi 185Gi 12% 150118 2448975242 0% /System/Volumes/Data /dev/disk1s4 234Gi 3.0Gi 185Gi 2% 4 2449125356 0% /private/var/vm map auto_home 0Bi 0Bi 0Bi 100% 0 0 100% /System/Volumes/Data/home /dev/disk2s1 1.8Ti 887Gi 976Gi 48% 220169 1023198995 0% /Volumes/liangshu