I was reading my Nezmar pal’s blog when I found a post in which he showed a funny trik to visualize the hardware architectures present in your current installation of Mac OS X.

This is obtainable by giving the following command or your terminal.app:

find / -perm -1 -type f -exec file \{\} \; | grep Mach-O | grep 'for architecture' | awk '{ print substr($0, match($0, "for architecture [^\\)]*”), RLENGTH)}’ | cut -d’ ‘ -f3 | sort | uniq -c

And this is what I get from it after some CPU clicles and hard drives read:

3234 i386
463 ppc
635 ppc64
2346 ppc7400
1 ppc750
1129 x86_64

where i386 means Intel specific code, ppc for the generic PowerPC family, ppc7400 for G4, ppc750 for G3, ppc970 for G5.

Enjoy !



Leave a Comment

2007 - Pierpaolo Mannone
Questo blog è pubblicato sotto una Licenza Creative Commons del tipo "Attribuzione - Non commerciale - Condividi allo stesso modo", v2.5 Italia. La proprietà dei post è dei rispettivi autori. La proprietà delle immagini, i loghi e i trademark dei rispettivi proprietari.Questo blog non rappresenta una testata giornalistica in quanto viene aggiornato senza alcuna periodicità predefinita. Ai sensi della legge n. 62 del 7.03.2001 non può pertanto considerarsi un prodotto editoriale. Sito ottimizzato per Mozilla Firefox.
Viagginrete: viaggi e vacanze