Mac OSX : Get disk partitions' size, type and name
Something when wrong with my Mac today and I need to find out all the disk partitions information on my Mac. So... instead of right-clicking on each items in Disk Utility to get the partition's size information such as this :
Which can be troublesome if there are many disk partitions.
There is a better way to do this, but from the disk utility's command line brother.
Open up terminal and type this command :
>diskutil list
It should list out the partition's location, type , name and size.
and to confirm if the information is indeed correct. I selected a mounted DMG file and right-click to get the disk information.
Hope this short tutorial helps!
See also : Mac OSX : Find large files by size
By Adam Ng
IF you gain some knowledge or the information here solved your programming problem. Please consider donating to the less fortunate or some charities that you like. Apart from donation, planting trees, volunteering or reducing your carbon footprint will be great too.
Advertisement
Tutorials
+24.8k Golang : How to print rune, unicode, utf-8 and non-ASCII CJK(Chinese/Japanese/Korean) characters?
+11.6k Golang : Change date format to yyyy-mm-dd
+17.1k Golang : How to save log messages to file?
+10k Golang : Sort and reverse sort a slice of integers
+16k Golang : Get current time from the Internet time server(ntp) example
+6k Golang : Shuffle array of list
+7k Fix sudo yum hang problem with no output or error messages
+52.7k Golang : How to get struct field and value by name
+6.6k Elasticsearch : Shutdown a local node
+12.3k Golang : calculate elapsed run time
+5.5k How to check with curl if my website or the asset is gzipped ?
+10.2k Golang : Get login name from environment and prompt for password