Facebook Twitter Instagram
    TecAdmin
    • Home
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    You are at:Home»Linux Commands»How to Kill Process by Name in Linux

    How to Kill Process by Name in Linux

    By RahulMarch 3, 20201 Min Read

    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?

    Advertisement

    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

    Related Posts

    cp Command in Linux (Copy Files Like a Pro)

    dd Command in Linux (Syntax, Options and Use Cases)

    Top 10 JQ Commands Every Linux Developer Should Know

    Add A Comment

    Leave A Reply Cancel Reply

    Advertisement
    Recent Posts
    • Implementing a Linux Server Security Audit: Best Practices and Tools
    • cp Command in Linux (Copy Files Like a Pro)
    • 15 Practical Examples of dd Command in Linux
    • dd Command in Linux (Syntax, Options and Use Cases)
    • Iptables: Common Firewall Rules and Commands
    Facebook Twitter Instagram Pinterest
    © 2023 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

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