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>