killall

प्रोसेस और सिस्टम

इस्तेमाल

killall [-SIGNAL] <name>

PID की जगह नाम से प्रक्रियाएँ मारता है; नाम को executable से पूरा मेल खाना चाहिए, इसलिए `killall chrome` "Google Chrome" नाम की प्रक्रिया छोड़ देता है।

आम विकल्प

विकल्पअर्थ
-9Force, with no chance for the process to clean up.
-iAsk for confirmation before each kill (Linux).
-u <user>Only the processes of that user with this name.
-eRequire an exact match for names longer than 15 characters (Linux).
-wWait until the processes are really gone (Linux).
-m <pattern>Treat the argument as a regular expression (macOS/BSD).

उदाहरण

killall node

Stop every process whose executable is named node.

killall -9 Dock

Force-restart the macOS Dock, which relaunches itself.

क्या चल रहा है और क्या मशीन खा रहा है। मारने से पहले पहचानना क्रम है।

कैसे पढ़ें

  • बड़े कोष्ठक [ ] उस हिस्से को दिखाते हैं जिसे छोड़ा जा सकता है।
  • तीन बिंदु … का मतलब है एक से ज़्यादा दिए जा सकते हैं।
  • विकल्पों में बड़े-छोटे अक्षर मायने रखते हैं — कुछ कमांड में -r और -R अलग काम करते हैं।

आम सवाल

Q. killall क्या करता है?

PID की जगह नाम से प्रक्रियाएँ मारता है; नाम को executable से पूरा मेल खाना चाहिए, इसलिए `killall chrome` "Google Chrome" नाम की प्रक्रिया छोड़ देता है।

Q. इसे कैसे लिखें?

killall [-SIGNAL] <name> — बड़े कोष्ठक वह हिस्सा दिखाते हैं जो छोड़ा जा सकता है।

Q. कितने विकल्प जानने लायक़ हैं?

यहाँ 6 दिए हैं; पूरी सूची man killall में है। यह कमांड प्रोसेस और सिस्टम में आती है।

मिलती-जुलती कमांड

man पेज: man killall