[筆記] Linux 底下 檢查硬碟總共寫入了多少空間的指令 - linux command to check total written of disk
[root@livedvd ~]# cat /proc/diskstats |grep sda2(or any other disk you want) |awk ‘{print $10 * 512 / 1073741824, “GB”}’
132355GB
[root@livedvd ~]
[root@livedvd ~]# cat /proc/diskstats |grep sda2(or any other disk you want) |awk ‘{print $10 * 512 / 1073741824, “GB”}’
132355GB
[root@livedvd ~]