Skip to content

Instantly share code, notes, and snippets.

Created June 11, 2013 11:24
What would you like to do?
One-liner for getting free space on current machine's mounted filesystems
`df`.split("\n").map {|line| line.split(" ")[3].to_i}[1...-1].inject(:+) / (1024*1024)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment