Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
mac:system_profiler [2011/04/03 13:30] 127.0.0.1 external edit |
mac:system_profiler [2011/04/16 23:33] (aktuell) wikisysop |
||
---|---|---|---|
Zeile 6: | Zeile 6: | ||
Öffnen Sie ein Terminal und rufen sie die Hilfe des Befehls <fc #008000>system_profiler</fc> auf: | Öffnen Sie ein Terminal und rufen sie die Hilfe des Befehls <fc #008000>system_profiler</fc> auf: | ||
- | <xterm>$ <fc #9acd32>system_profiler -usage</fc> <key>↵</key> | + | <xterm>$ <fc #008000>system_profiler -usage</fc> |
Usage: system_profiler [-listDataTypes] | Usage: system_profiler [-listDataTypes] | ||
system_profiler [-xml] [-detailLevel n] | system_profiler [-xml] [-detailLevel n] | ||
Zeile 42: | Zeile 42: | ||
Mit sogenannten <fc #008000>DataTypes</fc> können Sie die Suche auf bestimmte Bereiche eingrenzen. Um sich eine Liste der verfügbaren DataTypes anzeigen zu lassen, führen Sie den Befehl <fc #008000>system_profiler -listDataTypes</fc> aus: | Mit sogenannten <fc #008000>DataTypes</fc> können Sie die Suche auf bestimmte Bereiche eingrenzen. Um sich eine Liste der verfügbaren DataTypes anzeigen zu lassen, führen Sie den Befehl <fc #008000>system_profiler -listDataTypes</fc> aus: | ||
- | <xterm>$ <fc #9acd32>system_profiler -listDataTypes</fc> <key>↵</key> | + | <xterm>$ <fc #008000>system_profiler -listDataTypes</fc> |
Available Datatypes: | Available Datatypes: | ||
SPHardwareDataType | SPHardwareDataType | ||
Zeile 89: | Zeile 89: | ||
Der DataType für die installierten Applikationen wäre <fc #008000>SPApplicationsDataType</fc>. Da der folgende Befehl, je nach installierter Software, uU eine recht lange Liste produziert, filtere ich exemplarisch mit dem <fc #008000>grep</fc>-Befehl einmal die Ausgabe auf zB <fc #008000>Firefox</fc> und ein weiteres mal auf <fc #008000>Adobe</fc>, wobei ich die Adobe Ausgabe ein wenig kürze: | Der DataType für die installierten Applikationen wäre <fc #008000>SPApplicationsDataType</fc>. Da der folgende Befehl, je nach installierter Software, uU eine recht lange Liste produziert, filtere ich exemplarisch mit dem <fc #008000>grep</fc>-Befehl einmal die Ausgabe auf zB <fc #008000>Firefox</fc> und ein weiteres mal auf <fc #008000>Adobe</fc>, wobei ich die Adobe Ausgabe ein wenig kürze: | ||
- | <xterm>$ <fc #9acd32>system_profiler SPApplicationsDataType | grep Firefox</fc> <key>↵</key> | + | <xterm>$ <fc #008000>system_profiler SPApplicationsDataType | grep Firefox</fc> |
Firefox: | Firefox: | ||
Get Info String: Firefox 3.5.7, © 1998-2009 Contributors | Get Info String: Firefox 3.5.7, © 1998-2009 Contributors | ||
- | Location: /Applications/Firefox.app | + | Location: /Applications/Firefox.app</xterm> |
- | prontos-Mac-Pro:~ pronto$ <fc #9acd32>system_profiler SPApplicationsDataType | grep Adobe</fc> <key>↵</key> | + | |
+ | <xterm>$ <fc #008000>system_profiler SPApplicationsDataType | grep Adobe</fc> | ||
Adobe Photoshop CS4: | Adobe Photoshop CS4: | ||
Get Info String: 11.0.1 (11.0.1x20090216 [20090216.r.522 2009/02/16:17:00:00 cutoff; r branch]) © 1990-2009 Adobe Systems Incorporated | Get Info String: 11.0.1 (11.0.1x20090216 [20090216.r.522 2009/02/16:17:00:00 cutoff; r branch]) © 1990-2009 Adobe Systems Incorporated | ||
Zeile 117: | Zeile 118: | ||
Diese Information kann über den DataTye <fc #008000>SPHardwareDataType</fc> abgerufen werden:\\ | Diese Information kann über den DataTye <fc #008000>SPHardwareDataType</fc> abgerufen werden:\\ | ||
- | <xterm>$ <fc #9acd32>system_profiler SPHardwareDataType</fc> <key>↵</key> | + | <xterm>$ <fc #008000>system_profiler SPHardwareDataType</fc> |
Hardware: | Hardware: | ||