Created
November 19, 2012 04:22
-
-
Save dkam/4108942 to your computer and use it in GitHub Desktop.
Unfuck
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ cat /proc/partitions | |
| major minor #blocks name | |
| 11 0 717120 sr0 | |
| 8 0 732574584 sda | |
| 8 1 19679593 sda1 | |
| 8 2 2931862 sda2 | |
| 8 3 709960545 sda3 | |
| 8 32 312571224 sdc | |
| 8 33 312570183 sdc1 | |
| $ irb | |
| irb(main):041:0> 19679593 / 1024 / 1024.0 | |
| => 18.767578125 | |
| irb(main):042:0> 709960545 / 1024 / 1024.0 | |
| => 677.0703125 | |
| irb(main):043:0> 2931862 / 1024 / 1024.0 | |
| => 2.7958984375 | |
| irb(main):044:0> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment