Differences

This shows you the differences between two versions of the page.

Link to this comparison view

tech:linux:disk_space [2014/11/15 09:13]
tech:linux:disk_space [2014/11/15 09:13] (current)
Line 1: Line 1:
 +====== Get Disk Space ======
 +One liner to get total, used and available disk space
 +<code bash>
 +df -Pk|awk '{ sum2 += $2 ; sum3 += $3 ; sum4 += $4} END { print sum2/​1024/​1024 " G, " sum3/​1024/​1024 " G, " sum4/​1024/​1024 " G"​}'​
 +</​code>​
  

QR Code
QR Code tech:linux:disk_space (generated for current page)