Facebook Twitter Instagram
    TecAdmin
    • Home
    • Ubuntu 20.04
      • Upgrade Ubuntu
      • Install Java
      • Install Node.js
      • Install Docker
      • Install LAMP Stack
    • Tutorials
      • AWS
      • Shell Scripting
      • Docker
      • Git
      • MongoDB
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    Home»Linux Commands»How to Kill Process by Name in Linux

    How to Kill Process by Name in Linux

    RahulBy RahulNovember 28, 20141 Min ReadUpdated:March 3, 2020

    Question – How do I kill a process by Name in Linux system via command line? Killing multiple processes running with same name? How to kill process without PID under Linux? How to use pkill command line in Linux?

    pkill is a command line utility used for kill a running process by their name. The pkill command was initially introduced in Solaris 7 operating system, Latest it was re-implemented for other Linux operating system. This command sends signal to the processes by the regular expression.

    Command Syntax:

    pkill <process name>

    Examples:

    For example to kill all processes running with name java, use the following command. This will search all processes with name “java” and send a kill signal to them.

    sudo pkill java
    

    Similarily to kill all processes running with name httpd use the following command.

    sudo pkill httpd
    
    kill pkill process
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
    Previous ArticleHow to Get Query String Values using JavaScript
    Next Article How to Get current Timestamp in JavaScript

    Related Posts

    How to Search Recently Modified Files in Linux

    2 Mins Read

    Bash Printf Command

    Updated:December 23, 20212 Mins Read

    Tee Command in Linux with Examples

    4 Mins Read

    How to Scan Open Ports with Nmap

    5 Mins Read

    Handling filenames with spaces in Linux

    3 Mins Read

    How To Compare Two Files in Linux

    Updated:August 23, 20215 Mins Read

    Leave A Reply Cancel Reply

    Recent Posts
    • How to Install Ionic Framework on Ubuntu 22.04
    • What is the /etc/hosts file in Linux
    • How to Install Angular CLI on Ubuntu 22.04
    • How to Install Composer on Ubuntu 22.04
    • How to Create DMARC Record For Your Domain
    Facebook Twitter Instagram Pinterest
    © 2022 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.