Skip to content Skip to content


How to kill a program or process in OS X Kā nogalināt programma vai process OS X

Mac

The following tutorial will show you how to kill programs/processes in OS X. Šādas apmācība parādīs Jums, kā nogalināt programmas / procesi OS X.

Use the following information very carefully. Izmantot šādu informāciju ļoti uzmanīgi. Killing processes in OS X can cause system instability and full scale OS crashes. Killing procesus OS X var izraisīt sistēmas nestabilitāte un pilnas skalas OS crashes. 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. Ar to teica, šī apmācība parādīs Jums, kā 'Iziet' programma vai process, kad tas nav uzskaitīti doks, "Force Quit" menu utt

  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. Parasti, kad jūs meklējat piespiest kaut ko atmest, tas ir tāpēc, programma vai process ir ēšana līdz tonna CPU. To identify the program/process, open an OS X terminal by going into your Applications -> Utilities and selecting Terminal . Lai noteiktu programmu / process, atveriet OS X termināļu, dodoties savā Applications -> Utilities un izvēloties Terminal. Once a terminal has opened, you can get a list of the running programs by entering the command top . Kad termināls ir atvērts, Jūs varat saņemt saraksts darbojošās programmas, ievadot komandu augšas.
  2. top komandu osx termināls
    click to enlarge Uzklikšķiniet, lai palielinātu

  3. To quit the top program simply hit the q key on your keyboard. Atmest augšu programma vienkārši hit Q taustiņu uz tastatūras. As seen above, the default “sorting” for the top command is by PID (Process ID). Kā redzams iepriekš, default "šķirošanu", par top komandu ar PID (procesa ID). Since this doesn't always help identify which program is hogging your CPU, run top with the following string: top -o cpu Tā kā tas ne vienmēr palīdz noteikt, kuras programmas ir hogging savu CPU, palaist top ar šādu virkni: top-o CPU

    That will launch top and sort the processes by which ones are using the most CPU. Tas sāks augšas un kārtot procesi, kādi tiek izmantota lielākā daļa CPU. In the example below you'll see that top itself is actually using the most CPU. In Piemēram, jūs redzēsiet, ka top pati faktiski izmanto visvairāk CPU.

  4. top komandu osx gala sorted by cpu
    click to enlarge Uzklikšķiniet, lai palielinātu

  5. Again, hit the letter q to quit top . Atkal, hit vēstuli Q atmest augšu. If you've identified the program you want to end, make note of it's PID . Ja esat noteiktas programmas, kuru vēlaties beigt, lai vērā tas PID. In the screenshot below I'm using MozyBackup as my example, and it has a PID of 1488 Šajā attēlā zemāk Es izmantojot MozyBackup kā manam piemēram, un tas ir PID of 1.488
  6. top komandu osx gala sorted by cpu
    click to enlarge Uzklikšķiniet, lai palielinātu

  7. To quit MozyBackup, enter the command kill -9 1488 . Atmest MozyBackup, ievadiet komandu kill -9 1.488. 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). Sadalīti, tā ir nogalināt (komandu "nogalina" programma) -9 ( "non-catchable, non-ignorable nogalināt" - būtībā tas nozīmē nogalināt šo programmu neatkarīgi no tā, kādi) un 1.488 (PID, ka jūs vēlaties bojā gājušo) .
  8. nogalināšanas procesiem osx termināls
    click to enlarge Uzklikšķiniet, lai palielinātu

  9. As you'll see in the above screenshot, I was unable to kill the PID 1488. Kā jūs redzēsiet, kas iepriekš screenshot, es biju spējīga nogalināt PID 1.488. That's because the program in question wasn't owned (being run) by me – rather, it was being run by the root user. Tas ir tāpēc, ka programmā jautājums netika īpašumā (vada) ar mani - drīzāk to vada root lietotājam. To get around this, and use this command with care , enter sudo kill -9 1488 . Lai iegūtu ap to, un izmantot šo komandu ar aprūpi, ievadiet sudo kill -9 1.488. You'll be asked for your password, and after entering it, the process 1488 will be killed. Jums tiks lūgts sniegt savu paroli un pēc tam ievadot to, process 1.488 tiks nogalināti.
  10. nogalināšanas procesiem os x termināls
    click to enlarge Uzklikšķiniet, lai palielinātu

  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. Sīkāku informāciju par top un nogalināt programmas, ievadiet vīrietis augstākā vai cilvēks nogalināt no termināla, lai apskatītu rokasgrāmata lapas, katrai programmai.

Posted in Posted in Mac Mac . .

Get Simple Help tutorials just like this one in your email inbox every day - for free! Get Simple Palīdzība konsultācijas tāpat kā šo vienu savā e-pastā ik dienas - bez maksas! Just enter your email address below: Vienkārši ievadiet savu e-pasta adresi:

You can always opt out of this email subscription at any time. Jūs vienmēr varat atteikties no šīs e-pasta abonementu jebkurā laikā.

4 Responses 4 Atbildes

Stay in touch with the conversation, subscribe to the Uzturēt kontaktus ar sarunu, abonēt RSS feed for comments on this post RSS barību komentārus par šo ziņu . .

  1. Jaime King says Jaime King saka

    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. Thank you so much es pavadīju ilgi pūlējās saprast, kāpēc mana MacBook skrēja tik lēna un ventilators bija pilns domnas. I wish I had seen this site before i talked to that clueless tool on Apple's tech support line Es vēlos esmu redzējis šo lapu pirms es runāju, ka clueless rīku Apple tech atbalsta līnija

  2. Tommy Jackson Tommy Jackson says saka

    Thanks for this. Thanks for this. Peerguardian was driving me insane, but all sorted now PeerGuardian brauca man ārprātīgs, bet visas sorted tagad :-)

  3. MattD says MattD saka

    Just Spotlight “Activity Monitor” and kill the process. Just Spotlight "Activity Monitor" un nogalināt procesu.

Continuing the Discussion Turpinot iztirzājumu

  1. Kill command on OS X at Rage on Omnipotent Kill komandu OS X Rage par visvarens linked to this post on October 17, 2007 saistībā ar šo post, 2007 October 17,

    [...] command on OS X Published by Tom on 17/10/2007 in IT. [...] Komandu OS X Published by Tom uz 17/10/2007 IT. . . Useful summary of killing processes on OS [...] Noderīgas kopsavilkums nogalināšanas procesiem OS [...]



Some HTML is OK Daži HTML ir OK

or, reply to this post via vai, atbildot uz šo ziņu izmantojot trackback Trackback . .