Previous Page | Next Page

  1. Agustin's Linux Manual
  2. System Administration
  3. About the Author
  4. Contents
  5. Administration
  6. Terminals
  7. Command Basics
  8. Root Directory
  9. Executing Commands
  10. File specs
  11. File Permission
  12. How permissions are assigned
  13. Change ownership chown
  14. Running multiple commands
  15. Killing Processes
  16. Bash configuration files
  17. VI Editor
  18. Creating path environment
  19. Midnight Commander
  20. Linuxconf Utility
  21. Networking
  22. Domain Name Service DNS
  23. Router and Gateway
  24. Adding Users
  25. User Accounts
  26. Managing Groups
  27. Mounting File System
  28. NFS Mounts
  29. Disk Quotas
  30. Run levels
  31. Linuxconf Control
  32. Mandrake Control Center
  33. Creating a Boot Disk
  34. Switching Boot Mode
  35. Hardware Configurations
  36. Printer Configuration
  37. Installing Printers
  38. Samba Printer
  39. Managing services
  40. Managing Users
  41. Program Scheduler
  42. Software Management
  43. Installing CUPS

Killing Processes

Sometimes it is very necessary to terminate a process. A process is the job being executed by an application and is identified by a number called pid. In order to kill a process you have to be root or super-user.

[root@server2 agustin]# ps –aux

That command will display all the running processes.

Process List
Fig 3.2

It is not difficult to identify the processes. Search through the output of your command and find the PID number. The PID is the process number of your running application.

To kill the application, execute the following:

[root@server2 Agustin]# kill 2644 (This command would kill linuxconf, fig 3.2)

The kill command is very useful when you have a non-responding application. Another way of finding the process is searching by name of the application.

[root@server2 agustin]# pidof Xvnc
8613

Now kill the process:
root@server2 agustin]# kill 8613
Very simple…