Mac OS X 10.2.5 的 shell command 改良版

本區專門提供 Mac OS X 使用者交換使用心得

版主: ross_ttbryanchangdigdogchester

回覆文章
內容
發表人
留言五百如一日
文章: 610
註冊時間: 12/25/2001 1:01 am

Mac OS X 10.2.5 的 shell command 改良版

#1 文章 »

路徑: /usr/sbin/system_profiler

執行時不再使用 Apple System Profiler.app;省免了終端機指令依靠 GUI 軟體這 '有趣' 的現象。 :shock:

%system_profiler > ~/Desktop/seul.txt

約二十秒,一份名為 seul.txt 的文件會在桌面上出現。內容包括系統綜述,已安裝的硬、軟體,所有 *.framework,*.kext 及 *.log。

尋,看 眾 logs ,這指令可算方便。
fddi1
留言破百
文章: 188
註冊時間: 05/03/2001 1:01 am
來自: USA/Seattle, WA
聯繫:

Re: Mac OS X 10.2.5 的 shell command 改良版

#2 文章 fddi1 »

悲 寫:路徑: /usr/sbin/system_profiler

執行時不再使用 Apple System Profiler.app;省免了終端機指令依靠 GUI 軟體這 '有趣' 的現象。 :shock:

%system_profiler > ~/Desktop/seul.txt

約二十秒,一份名為 seul.txt 的文件會在桌面上出現。內容包括系統綜述,已安裝的硬、軟體,所有 *.framework,*.kext 及 *.log。

尋,看 眾 logs ,這指令可算方便。
I think the command line capability was there before 10.2 if my memory serves me right. I'm glad to see they brought it back though. :)
Podcast節目
AIRLOG podcast
SNAPPLE LAB 實驗試管
AIRLOG podcast在iTMS上的列表
頭像
bryanchang
討論區管理員
文章: 7057
註冊時間: 04/19/2001 1:01 am
來自: The '60s
聯繫:

#3 文章 bryanchang »

悲兄的這招頗酷!不過因為我還在用 10.2.3,所以可能要到稍後才可以試試看了。 :lol:
圖檔
留言五百如一日
文章: 610
註冊時間: 12/25/2001 1:01 am

#4 文章 »

system_profiler 是 10.2.5 新增的指令,前身為 /usr/sbin/AppleSystemProfiler 。

10.1.5 或前,AppleSystemProfiler 其行為算 "正常" ;但,10.2 至 10.2.4 的 AppleSystemProfiler ,要呼叫 Apple System Profiler.app 。在單人模式下可用不了。

最近很多人遇上 kernel panic,如在 10.2.5,用 system_profiler 尋、看 *.log 較便捷;資料也齊全。
回覆文章