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.隨著中說,本教程將告訴您如何'退出'程序或進程時,沒有列出的船塢, “強制退出”菜單等
- 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 .一旦一個終端已經打開,你可以列出了正在運行的程序中輸入命令頂端 。
- 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 。
- 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
- 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您想要死亡) 。
- 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年的進程將被殺死。
- 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.如需詳細資料, 頂端和殺死程序,進入男子頂部或男子殺死由終端,以查看手冊頁的每個程序。



























{ 1 trackback } ( 1 )引用
{ 1 comment… read it below or ( 1評論...閱讀低於或 add one添加一個 } )
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發表您的評論