Menus

Wednesday 19 September 2018

Forcefully Close a Program in Ubuntu


How to close a program from the terminal in ubuntu


  1. The program name with:
    pkill <name_of_program>
    
  2. use of program PID (process id)
    • kill it with kill <PID>

Steps for close program

1. open a Terminal window

2. To view a list of running processes, enter the following text at the prompt and press Enter.
$ ps -A

eg : pkill filezilla   - use program name.


To kill a process using its PID, enter the “killall” command (without the quotes) at the prompt, followed by a space, and then the corresponding PID from the generated list. Press Enter.