我需要按其在列df -h
中的挂载点按字母顺序排序的输出。Mounted on
但是,df -h
目前的输出类似于:
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/nvme0n1p2 228G 14G 203G 7% /
/dev/nvme0n1p1 511M 7.9M 504M 2% /boot/efi
/dev/sdf2 17T 17T 3.3T 56% /mnt/data/drive014
/dev/sdl1 17T 17T 53G 100% /mnt/data/drive006
/dev/sdd1 17T 17T 102G 100% /mnt/data/drive002
/dev/sda1 17T 17T 26G 100% /mnt/data/drive001
有没有像下面这样输出的命令?
Filesystem Size Used Avail Use% Mounted on
/dev/nvme0n1p2 228G 14G 203G 7% /
/dev/nvme0n1p1 511M 7.9M 504M 2% /boot/efi
/dev/sda1 17T 17T 26G 100% /mnt/data/drive001
/dev/sdd1 17T 17T 102G 100% /mnt/data/drive002
/dev/sdl1 17T 17T 53G 100% /mnt/data/drive006
/dev/sdf2 17T 17T 3.3T 56% /mnt/data/drive014