Free up a few gigabytes of space on your Mac
Marcel Grünauer posted to his Twitter account that he freed up 3 GB by removing non-English localization resource files (*.lproj) with the following command:
find / \
\! -name 'English.lproj' \
\! -name 'en.lproj' \
-name '*.lproj' -type d \
-exec rm -rf -- {} \; -prune
If you want to make sure you're deleting the right files before you delete them, see the list of the .ljprojf files first:
find / \
\! -name 'English.lproj' \
\! -name 'en.lproj' \
-name '*.lproj' -type d -print -prune
Categories:
0 TrackBacks
Listed below are links to blogs that reference this entry: Free up a few gigabytes of space on your Mac.
TrackBack URL for this entry: http://perlbuzz.com/cgi-bin/mt/mt-tb.cgi/337
I know this is a command line vs application question, but how this compares with Monolingual on saved space? Any hints?
I don't know. I suspect they're about the same. Monolingual also supports a blacklist so that you don't delete localization files for apps that check checksums on themselves.
See http://monolingual.sourceforge.net/changelog.php for some examples.
Be careful with it. I don't know how exactly localization works on a Mac, but you should at least keep the fonts - as much non-Latin fonts as possible. (Deleting strings files for help and error messages in foreign languages is
Even if you don't know Sanskrit, Ankhazian, Hebrew and Japanese, seeing real native characters in Wikipedia articles is rather better than seeing question marks or squares. Again, i haven't ever really used a Mac, but that's how it works on GNU/Linux and Windows when you don't have the fonts installed.