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发表您的评论