( /is/apps/macos/disks-files/ (newer) and /is/apps/diskutilities/ (old, redirect to this page) )
Contents
Topics – Disks and Files Utilities
Categories of Utilities, What want to do?
- Backup / Sync / Recover
- Comparisons
- Duplicates
- Finder and Finder Alternatives – /is/apps/macos/finder – Notes on standard Finder, Finder alternatives, navigating the file system
- Search! Start Here – jandp.biz/is/search/, focuses on search in broader terms (cloud, CMSs, theory, …).
- Include test materials
- Search – /is/apps/macos/search – on search file systems, desktop search, but also more search in general
- What’s Eating my Disk…?! – /is/apps/macos/disks-files/whats-eating-my-disk/
- Cloud services
- Compare files
- The 5 Best Mac File Comparison Tools and Diff Tools – makeuseof.com/tag/mac-file-comparison-tools/, Updated Jul 6, 2021
- Meld (FOSS, a bit sluggish on macOS, tried 3.21.0.osx3 build)
- Helix P4 Diff and Merge Tool
- Beyond Compare ($30+)
- DeltaWalker ($40+)
- Araxis Merge ($129+)
- Meld – ‘Meld is a visual diff and merge tool targeted at developers.’
- Editors – using text editors for comparing text files
- TextWrangler – so-so interface
- (Search menu, (e.g.) Compare Two Front Windows)
- Visual Studio Code (Microsoft’s)
- Process
- Open both the files in VS Code.
- From the left Explorer panel, right-click the first file and choose Select for Compare from the right-click menu.
- Then right-click the second file and choose Compare with Selected.
- Process
- TextWrangler – so-so interface
- The 5 Best Mac File Comparison Tools and Diff Tools – makeuseof.com/tag/mac-file-comparison-tools/, Updated Jul 6, 2021
- Compare directories, volumes, …
- VisualDiffer
- visualdiffer.com/
- compare files and folders
d https://jandp.biz/is/search/ –
Sizes (…!)
Oh, what an actually quite complicated topic…!
1-byte-file (‘regular’) |
1-byte-file Db: ‘Online Only’ Personal acct |
1-byte-file Db: ‘Online Only’ Business acct |
del-01-26.24min.mp4 | del-01-26.24min.mp4 Db: ‘Online Only’ |
|
GUI: Finder, List view | ‘1 byte’ | ‘Zero bytes’ | ‘1 byte’ | ‘510.2 MB’ | ‘Zero bytes’ |
GUI: Get Info | ‘1 byte (4 KB on disk)’ | ‘Zero bytes (compressed)’ | ‘1 byte (Zero bytes on disk)’ | ‘510,187,850 bytes (510.2 MB on disk)’ | ‘Zero bytes (compressed)’ |
CLI: ll (ls -l) | ‘1’ | ‘0’ | ‘1’ | ‘510187850’ | ‘0’ |
CLI: ll -h | ‘1B’ | ‘0B’ | ‘1B’ | ‘487M’ | ‘0B’ |
CLI: du | ‘8’ | ‘0’ | ‘0’ | ‘996464’ | ‘0’ |
CLI: du -h | ‘4.0K’ | ‘0B’ | ‘0B’ | ‘487M’ | ‘0B’ |
Legend:
- ‘Db’: Dropbox
- ‘MB’ varies depending on tool/SW and can mean Megabyte (1,000,000 bytes) or Mebibyte (1,048,576 bytes)
- ‘K’, ‘KB’: as for MB, can technically mean kilobyte (1000 bytes) or kibibyte (1024 bytes)
- Sector size as used as measurement by du tool is 512 bytes if nothing else is configured (and size of 512 is based on TOOL not on any underlying disk configuration)
- In the case exemplified above, disk in question, one actual physical sector on this disk is 4096 bytes (the ‘4.0K’ as shown with -h option; or 8 [512] sectors, the ‘8’)
- Physical sector sizes can vary depending on hardware disk and configuration
- 512 bytes has been a common size
- 4096 bytes is more modern size
- google.com/search?q=sector+size+ssd
- intel.com/content/www/us/en/support/articles/000006392/memory-and-storage.html
- seagate.com/tech-insights/advanced-format-4k-sector-hard-drives-master-ti/
$ ll
-rw-r–r–@ 1 johan staff 1 Jul 31 07:01 1-byte-file.txt
$ ll -h
-rw-r–r–@ 1 johan staff 1B Jul 31 07:01 1-byte-file.txt
$ du 1-byte-file.txt
8 1-byte-file.txt
$ du -h 1-byte-file.txt
4.0K 1-byte-file.txt
$
del-01-26.24min.mp4
- ‘510.2 MB’ in Finder list view
- Finder > Get Info: 510,187,850 bytes (510.2 MB on disk)
- And in both these cases ‘M’ stands for mega as in 1000 0000 (10-base, 10 raised to 6)
- In terminal
- $ ll del-01-26.24min.mp4
-rw-r–r–@ 1 johan staff 510187850 Nov 30 2020 del-01-26.24min.mp4
$ ll -h del-01-26.24min.mp4
-rw-r–r–@ 1 johan staff 487M Nov 30 2020 del-01-26.24min.mp4
$ du del-01-26.24min.mp4
996464 del-01-26.24min.mp4
$ echo $BLOCKSIZE$ (BLOCKSIZE is unset thus block size used in presentation is 512 bytes) - $ du -h del-01-26.24min.mp4
487M del-01-26.24min.mp4
- $ ll del-01-26.24min.mp4
- 487M comes from 510187850/1024/1024, 1024 as terminal tools commonly still uses Base-2 arithmetics, binary numeric system, = 486.5530490875, which rounds to 487 (M as in Mebibyte, in this case).
- 996464 comes from 510187850/512 = 996,460.64453125 and as local file system at this point has a disk block size of 4K / 5+ ###another 4 basically… not figured out exactly reason
- 996464 x 512 = 510,189,568
- 996,460 x 512 = 510,187,520 ; 996,460.64453125
- 510187850 – 510,189,568 = 1718
evo590-10min.mp4
A | B | C | D | E | ||
Db, Personal acct | Db, Business acct | |||||
Local | Online Only | Local | Online Only | Comments | ||
1 | GUI: Finder, List view | ‘375.6 MB’ | ‘Zero bytes’ | ‘375.6 MB’ | ‘375.6 MB’ | |
2 | GUI: Get Info | ‘375,582,861 bytes (375.6 MB on disk)’ | ‘Zero bytes (Zero bytes on disk)’ | ‘375,582,861 bytes (375.6 MB on disk)’ | ‘375,582,861 bytes (Zero bytes on disk)’ | |
3 | CLI: ll (ls -l) | ‘375582861’ | ‘0’ | ‘375582861’ | ‘375582861’ | |
4 | CLI: ll -h | ‘358M’ | ‘0B’ | ‘358M’ | ‘358M’ | |
5 | CLI: du | ‘733568’ | ‘0’ | ‘733568’ | ‘0’ | At least du command seems to behave as expected. |
6 | CLI: du -h | ‘358M’ | ‘0B’ | ‘358M’ | ‘0B’ | |
7 | Comments: | Case ‘1’, ‘as expected’ | Case ‘2’, zero bytes on disk makes sense but zero bytes for file size could be argued… | ‘Case 1’, ‘as expected’ | Case ‘3’, zero bytes on disk makes sense but showing actual file size if more helpful, useful, than zero… |
- That ‘Local’ info is remains same independently of type of Dropbox account is of course what to expect. Even having this note seems ridiculous but… Next:
- WHY is it different info displayed depending on Personal or Business account for Online Only file…?!?
- Personal: ‘Zero bytes (Zero bytes on disk)’
- Business: ‘375,582,861 bytes (Zero bytes on disk)’
- (On a Mac computer with macOS 10.13.6, High Sierra, and Dropbox ‘Version: 127.4.4265’, ‘Modified: 2021-Jul-20 Tue at 19:36’.
- (Findings compiled here 2021-08-05)
Characteristics of file system entries
- Logical size of file content
- Physical size of file content
- Logical size of file on disk
- Physical size of file on disk
Dropbox ‘view/opinion’
Term | Dropbox Clarification | |
“physical size” | “A Smart Sync placeholder takes up approximately 0kb, this is the pysical size.” | |
“logical size” | “The logical size of the file is the actual size of the file, if it were downloaded to the device (the size reported through your “Large File Report” is the physical size of the file). “ |
`
https://www.dropboxforum.com/t5/Dropbox-files-folders/MacOS-10-14-SmartSync-files-included-in-disk-storage-calculation/td-p/308826
“First off, thanks for using our BETA versions – I guess you’ve opted in “early releases” on your Dropbox account, right?
[Kindly note that as beta builds are still in the testing process, you could experience some issues or an inconsistent experience.]
Now, as per the matter at hand, from what I see in your last screenshot this specific file is physically taking up no space (i.e. this is what the “Zero bytes on disk” means). Read on for more context:
As there are various places to see the size of a file in Finder, it’s good to know that some of these locations will display the logical size, others the physical size. A Smart Sync placeholder takes up approximately 0kb, this is the pysical size. The logical size of the file is the actual size of the file, if it were downloaded to the device (the size reported through your “Large File Report” is the physical size of the file).
To see both the logical and physical file size:
– Right click on a file/folder
– Select ‘Get info’
– In the properties window you will see the original file size, followed by the actual on-disk size:
For example:428,510 bytes (0 KB on disk)
It is important to be able to view both sizes, not just to reassure you that the file is not taking up space, but also to understand the space and speed implications of returning the file(s).
In other views of Finder, the operating system will report the logical size. For this reason you shouldn’t be concerned if it initially appears that the placeholder is taking up space. To confirm the file or folder is not taking up space, please check via the above steps. Files that are not taking up space on disk will have an icon overlay that changes from the usual green tick to the grey cloud icon, denoting that the file isn’t locally present.
Please note that third party disk management software may not read the physical size of a Smart Sync placeholder, therefore that software may not correctly report disk usage.
I hope this inforrmation helps and please let me know if there’s anything else I can do.
”
Terminal Commands, CLI Commands
- ls – classic *NIX
- ‘A bit of research told me that ‘ls is hashed’, which is supposed to speed up shell commands. But how do I clear that hash table?’ – discussions.apple.com/thread/252165595
- file – also classic *NIX
- Mac OS specific:
- mdls
- mdfind
- mdutil
- xattr – display and manipulate extended attributes
- stat – readlink, stat – display file status
- google.com/search?q=finder+info+from+terminal
- macissues.com/2016/01/19/how-to-get-file-information-from-the-command-line-in-os-x/
- google.com/search?q=size+of+folder+macos
- macobserver.com/tips/mgg-answers/seeing-folders-size-terminal/
- How can I calculate the size of a directory? – unix.stackexchange.com/questions/3019/how-can-i-calculate-the-size-of-a-directory
- du …
-
ls -ARgo "$@" | awk '{q += $3} END {print q}'
find /whatever/path -type f -printf "%s\n"|awk '{q+=$1} END {print q}'
sudo find . -maxdepth 1 -exec du -shk {} \;| awk 'NR >1'| awk 'BEGIN{sum=1}{sum=sum+$1}END{print sum}'
- macOS, find: mac find: -printf: unknown primary or operator
- google.com/search?q=find+command+find+hard+link
- How can I find all hardlinked files on a filesystem? – superuser.com/questions/485919/how-can-i-find-all-hardlinked-files-on-a-filesystem
- Linux / UNIX: Display file inode (index number) – cyberciti.biz/faq/howto-print-inode-data-structure/
- google.com/search?q=find+all+locations+of+a+file+with+inode
- unix.stackexchange.com/questions/73538/list-all-files-with-the-same-inode-number/73542
- find /mount/point -xdev -inum 12353538
- unix.stackexchange.com/questions/35292/quickly-find-which-files-belongs-to-a-specific-inode-number
Tools for What’s Eating my Disk Space
Application | Cost | JRate | Comments |
---|---|---|---|
Baseline | (Gone) | 0 | No longer available |
Disk Inventory X | $0 (FOSS) | 4/5 | Good, a favorite |
GrandPerspective | $0 (FOSS) | 1/5 | Only boxes-display, no text |
OmniDiskSweeper | $0 (Free, Propr.) | 4/5 | Good display, easy navigate, a favorite |
WhatSize | $15 | 0/5 | Doesn’t work… |
[1] http://old.jandp.biz/is/apps/diskutilities/
###BELOW
Research into better tools to find culprits
- du is definitely ok but needs a bit work to find – safely clean (GUI, make Online Only) – find again cycles
- Searching for apps in general, and stumbled up / re-found (some seen years earlier but have not looked at in a while)
- Disk Inventory X – really great actually!
- (Found tool relatively late in the game at this occasion but Disk Inventory X and/or OmniDiskSweeper WILL be the tool for next time)!
- http://www.derlien.com/downloads/index.html
- https://www.google.com/search?q=disk+inventory+x+review
- OmniDiskSweeper – really great actually!
- (Found tool relatively late in the game at this occasion but Disk Inventory X and/or OmniDiskSweeper WILL be the tool for next time)!
- https://www.omnigroup.com/more
- https://alternativeto.net/software/omnidisksweeper/
- Disk Inventory X – really great actually!
Baseline by MildManneredIndustries – GONE
- Seems completely gone 2020,
- google.com/search?q=www.mildmanneredindustries.com+baseline
- google.com/search?q=baseline+by++mild+mannered+industries
- can’t find any newer/sources/anyone taking over
- v1.0 was released in 2007, v1.5 in 2009 – last known. (prmac.com/member_releases-id-432.htm)
- find-and-update.company-information.service.gov.uk/company/05739830
- Incorporated 13 March 2006
- Disolved 20 August 2019
- Registered office address was 262, Camden Road, London, NW1 9AB
crossdirstat (FOSS) (J: 0/5)
(Tried it once, crossdirstat-2.0.0-mac on macOS 10.13 but after running for maybe an hour collecting data, ended up with showing a white window with nothing else…, why zero 0f 5 rating.)
- github.com/Jelmerro/crossdirstat
- github.com/Jelmerro/crossdirstat/releases incl. builds for macOS, macOS-arm, and many more
- google.com/search?q=crossdirstat
- google.com/search?q=crossdirstat+review
DaisyDisk ($10)
- DaisyDisk $9.99 – not tested, at cost and there are free alternatives (e.g. OmniDiskSweeper)
- daisydiskapp.com
- google.com/search?q=daisydisk+alternative
- alternativeto.net/software/daisydisk/?license=free&platform=mac
Disk Inventory X (FOSS) (J: 4/5)
(It’s all relative, give it a 4 of 5 as among the better tools found so far, for our intended purposes of easier finding big eater culprits.)
- derlien.com – home page for app
- google.com/search?q=disk+inventory+x+review
GrandPerspective (FOSS) (J: 1/5)
- Free, open source, weird interface – do not like.
- grandperspectiv.sourceforge.net – home page for app
- I.e. ONLY has graphic visualization of disk use, NO table/directory/file system entries view(s) (like e.g. Disk Inventory X above does)
OmniDiskSweeper (Free) (J: 4/5)
- Free but not open source
- omnigroup.com/more/
- No graphic representation like Disk Inventory X and GrandPerspective but that is NOT a drawback in out oppinion.
- Instead have a really easy to read and navigate file directory display of information:
WhatSize ($15) (J: 0/5)
As long as hangs and has to be Force Killed, a zero of 5.
Otherwise, not the most user-friendly user interface and probably would get 1 of 5 if worked.
old:
OLD: Disk Utilities
Introduction
Want To | Application(s) | Comments |
---|---|---|
Good Overview of Large Files |
|
WhatSize has most flexibility |
See/Find What Changes Over Time |
|
|
Find Duplicates |
|
|
1 I.e. among the applications listed here. |
http://www.apple.com/downloads/macosx/system_disk_utilities/
Application | price
from |
Version/Release Info | Comments | ||
---|---|---|---|---|---|
Ver. | Date* | Size | |||
Baseline | $20.00 | v1.4.2 | 20081124 (mod) | 8.6MB | More info: (Seems gone 2020, https://www.google.com/search?q=www.mildmanneredindustries.com+baseline)
MW review v1.4.2 Dec 08, rating 4/5 |
GrandPerspective | Free | v1.0 | 20081222 (mod) | 1.3MB | open-source; only a visual graphical representation and one that neither is that easy to interpret nor that useful (as far as seen/understood so far)
– Not that useful (MW rating: 4/5, v0.93 – MacWorld’s Byte breakdown Apr’06.) |
OmniDiskSweeper | Free(1) | v1.7 | 20090224 (mod) | 6.3MB | (1) Free since v1.7 Feb 2009 (was $15 prior)
+ Decent util (considering it’s now Free) to get a good overview of large folders and files. – No means to sort other than default (decending order size of folders/files). More info: omnigroup.com/applications/omnidisksweeper. (MW rating: 3.5/5, v1.5 – MacWorld’s Byte breakdown Apr’06; NOTE: This rating was for the for-pay version.) |
WhatSize | $12.99 | v(10.)4.5.1 | 20090317 (mod) | 6.4MB | More info: id-design.com/software/whatsize.
(MW rating: 4/5, v10.3.9 (current per Apr09 is v(10.)4.5.1) – MacWorld’s Byte breakdown Apr’06.) |
The Top Five Mac Hard Drive, Diagnostic, and Repair Utilities, Feb 23, 2007 – http://www.peachpit.com/articles/article.aspx?p=693649
- Prosoft’s Data Rescue II – http://prosofteng.com/products/data_rescue.php -,
- Also by Prosoft, Drive Genius,
- MicroMat’s TechTool Pro,
- Alsoft’s DiskWarrior
- AppleJack is the only open source
Hyperbolic Software Tidy Up! ($39) http://www.hyperbolicsoftware.com/TidyUp.html
http://www.apple.com/downloads/macosx/system_disk_utilities/tidyup.html
Side-by-Side
Comparing 1Password – being evaluated – to Web Confidential – used for many years.
Mac OS X
Finder |
Baseline | OmniDiskSweeper | WhatSize | Comments | |
---|---|---|---|---|---|
Product Info | Apple | baseline | omnidisksweeper | whatsize | |
Developer | Apple | mildmanneredindustries | omnigroup | id-design.com | |
Pricing | incl in OS | $20 | Free | $12.99 | |
General comments | ### | Rather simple tool,
only lists size (but still better than Finder (10.5)), no Find Duplicates, … |
|||
R&D | |||||
Version | 10.5.8 | 1.4.2 | 1.7 | 10.4.5.1 (i) | (i) = as per About information inside application
(m) = Modified time stamp as per Info (Command-I) for installed application. |
Released | ~2009
(10.5.8) |
2009-11-24 (m) | 2009-02-24 (m) | 2009-03-17 (m) | |
since today | ~5 months ago | ~ 2 months ago | ~ 1 month ago | (This review per Fri 2009-04-17) | |
R&D | ? | ? | ? | ? | |
Application size | ? | 8.6 MB | 6.3 MB | 6.4 MB | |
General Use | |||||
Primarily how using | From within browser.
(Application isn’t even visible in list of open applications. Nice!) |
Application itself. | 1P: adds a button – and toolbar – in web browsers and this is how accessing most commonly used features.
WC: from the application itself, limited integration with web browsers. |
||
Starting | 3 sec* | 10 sec* | 1Password starts significantly faster.
*) Times only to be seen relatively; on a specific Mac (Mini), with lots of applications running. |
||
|
Baseline | OmniDiskSweeper | WhatSize | Comments | |
# Views | 4 | 4 | 1 | 5 | ### |
names | 1:As Icons (Cmd-1)
2:As List (Cmd-2) 3:As Columns (Cmd-3) 4:As Cover Flow (Cmd-4) |
1:List View (Cmd-1)
2:Columns View (Cmd-2) 3:Tree Map (Cmd-3) 4:Duplicates (Cmd-4) |
n/a | 1:Browser View (Cmd-1)
2:Outline View (Cmd-2) 3:Table View (Cmd-3) 4:BarChart View (Cmd-4) 5:PieChart View (Cmd-5) |
|
List View, Outline View | Yes (Cmd-2) | Yes (Cmd-1) | No | Yes (Cmd-2) | |
Table View | No | No | No | Yes (Cmd-3) (1) | (1) Including pre-defined searches |
Columns View | Yes (Cmd-3) | Yes (Cmd-2) | Yes | Yes (Cmd-1) | |
Cover Flow View | Yes (Cmd-4) | No | No | No | |
Tree Map | No | Yes (Cmd-3) (1) | No | No | (1) Similar to GrandPerspective’s (not in this table) view. |
BarChart View | No | No | No | Yes (Cmd-4) | |
PieChart View | No | No | No | Yes (Cmd-5) | |
Duplicates View | No | Yes (Cmd-4) | No | No | |
Find duplicates | No | Yes
(but quite slow) |
No | No | |
Total space occupied by duplicates | n/a | No | n/a | n/a | |
Delocalization | No | No | No | Yes (Cmd-6) | |
Baselines, save state to see changes over time
|
No | Yes | No | No | Can be quite useful when trying to find out what’s eating space over time (like memory leaking applications) |