How to kill a program or process in OS X如何殺死一個程序或進程的OS X操作系統

by Ross McKillop on June 4, 2007 羅斯麥奇洛 關於 2007六月4

蘋果

The following tutorial will show you how to kill programs/processes in OS X.下面的教程將告訴您如何殺死程序/進程在OS X中

Use the following information very carefully.使用下列信息非常仔細。 Killing processes in OS X can cause system instability and full scale OS crashes.殺進程的OS X操作系統可能會造成系統的不穩定和操作系統全面崩潰。 With that said, this tutorial will show you how to ‘quit’ a program or process when it’s not listed in the dock, “Force Quit” menu etc.隨著中說,本教程將告訴您如何'退出'程序或進程時,沒有列出的船塢, “強制退出”菜單等

  1. Typically when you’re looking to force something to quit, it’s because the program or process is eating up a ton of CPU.通常當你要找的東西,迫使退出,這是因為該程序或進程是吃了一噸的CPU 。 To identify the program/process, open an OS X terminal by going into your Applications -> Utilities and selecting Terminal .要確定程序/進程,打開一個OS X的終端進入到您的應用程序 -> “工具並選擇終端。 Once a terminal has opened, you can get a list of the running programs by entering the command top .一旦一個終端已經打開,你可以列出了正在運行的程序中輸入命令頂端
  2. 頂端指揮終端的OSX版
    click to enlarge點擊放大

  3. To quit the top program simply hit the q key on your keyboard.要退出頂端計劃只是擊中關鍵 q鍵盤上的。 As seen above, the default “sorting” for the top command is by PID (Process ID).如上文所示,默認的“排序”的頂端是命令的PID (進程ID ) 。 Since this doesn’t always help identify which program is hogging your CPU, run top with the following string: top -o cpu由於這並不總是幫助確定哪些程序佔用你的CPU , 最高運行與以下字符串: 前鄰的CPU

    That will launch top and sort the processes by which ones are using the most CPU.這將啟動頂部和排序的過程有哪些使用的是CPU的。 In the example below you’ll see that top itself is actually using the most CPU.在下面的例子中您會看到頂端本身實際上是使用最的CPU 。

  4. 頂端的命令在OSX版按終端的CPU
    click to enlarge點擊放大

  5. Again, hit the letter q to quit top .同樣,擊中字母 Q退出頂端 If you’ve identified the program you want to end, make note of it’s PID .如果您已經確定的程序要結束,請注意它的PID In the screenshot below I’m using MozyBackup as my example, and it has a PID of 1488在下面的截圖中我使用的MozyBackup作為我的榜樣,它有一個1488年的PID
  6. 頂端的命令在OSX版按終端的CPU
    click to enlarge點擊放大

  7. To quit MozyBackup, enter the command kill -9 1488 .要退出MozyBackup ,輸入命令殺死-9 1488 Broken down, that’s kill (the command to ‘kill’ a program) -9 (the “non-catchable, non-ignorable kill” - basically it means kill this program no matter what) and 1488 (the PID that you want killed).細分,這是殺死 (命令'殺死'計劃) -9 ( “不捕,不忽略殺” -基本上這意味著殺死這個計劃不管)和1 488(的 P ID您想要死亡) 。
  8. 殺死進程中OSX版終端
    click to enlarge點擊放大

  9. As you’ll see in the above screenshot, I was unable to kill the PID 1488.正如您可以看到在上述畫面,我無法殺死的PID 1488 。 That’s because the program in question wasn’t owned (being run) by me - rather, it was being run by the root user.這是因為該計劃的問題不是國有(運行)由我-相反,它是由r oot用戶。 To get around this, and use this command with care , enter sudo kill -9 1488 .要解決此問題,並使用這個命令與照顧,進入須藤殺死-9 1488 You’ll be asked for your password, and after entering it, the process 1488 will be killed.您可以要求您的密碼,輸入後, 1488年的進程被殺死。
  10. 殺死進程中OS X的終端
    click to enlarge點擊放大

  11. For detailed information on the top and kill programs, enter man top or man kill from the terminal to view the manual pages for each program.如需詳細資料, 頂端和殺死程序,進入男子頂部或男子殺死由終端,以查看手冊頁的每個程序。
Related Posts: 相關文章:
  • How to get detailed information on each running process in Windows如何獲得詳細資料,每個運行過程在Windows
  • How to allow a program through the Windows Vista Firewall如何使一個程序通過Windows Vista防火牆
  • Did you know..你知道.. How to use your favorite email program with Gmail如何使用您最喜愛的電子郵件程序與Gmail
  • How To Turn Any Video File Into A DVD Player Playable Disc如何打開任何視頻文件轉換成DVD播放機播放光盤
  • How to keep any Windows program “always on top”如何保持任何Windows程序“總是在最”
  • Get Simple Help tutorials just like this one in your email inbox every day - for free!獲取簡單的幫助教程就這樣一個在您的電子郵件收件匣每一天-是免費的! Just enter your email address below:只要輸入您的電子郵件地址如下:

    You can always opt out of this email subscription at any time.您可以隨時退出這個郵件訂閱在任何時候。


    Bookmark and Share 書籤和共享

    { 1 trackback } 1 )引用

    Kill command on OS X at Rage on Omnipotent kill命令在OS X在狂暴的全能
    10.17.07 at 5:17 am 10.17.07在上午05點17分

    { 1 comment… read it below or 1評論...閱讀低於或 add one添加一個 }

    1 1 Jaime King 09.24.08 at 6:52 pm 國王 09.24.08 海梅 在下午6時52分

    Thank you so much I spent a LONG time trying to figure out why my macbook was running so slow and the fan was on full blast.太感謝你了我花了很長一段時間試圖找出原因,我國的MacBook運行十分緩慢和球迷充分爆炸。 I wish I had seen this site before i talked to that clueless tool on Apple’s tech support line我想我已經看到這個網站之前,我談這個頭緒工具蘋果公司的在線技術支持

    Leave a Comment發表您的評論

    You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> 您可以使用這些HTML標記和屬性: href="" title="">的<a <abbr title=""> <acronym title="">的<b> <blockquote cite=""> <cite>的<code> <del datetime="">的<em> <i> <q cite=""> <strike>的<strong>