This subchapter looks at kill, a UNIX (and Linux) command.
kill is used to stop processes.
kill is a builtin command in csh. There is also an external utility with the same name and functionality.
which processes can be killed
An ordinary user can only kill his or her own processes.
A system administrator running as root (including using sudo) can use kill on any process on the entire system.
frozen process
Sometimes a process (particularly web browsers) will freeze up. The kill command can be used to rmove the frozen program from the system.
If a user finds their display locked up because of a frozen program, he or she can login to another computer, then login to the original system using rlogin, and then use the kill command to stop the offending process using the specific process ID.
killall
killall is a related command. killall program_name will stop all processes with the program name, so the more specific kill with a specific process ID is usually used first.
process isolation
UNIX does a very good job of keeping processes isolated from each other, so that no rogue process can attack or damage any other process.
Unlike Windows, a frozen or crashed program on UNIX or Linux shouldnt be able to bring the entire operating system to a halt.
Most UNIX vendors carefully test their own system software and most of the system software has been running and tested for decades, so those programs rarely cause problems.
Most bugs occur in third party software and in custom software developed for a particular installation.
Coding example: I am making heavily documented and explained open source code for a method to play music for free almost any song, no subscription fees, no download costs, no advertisements, all completely legal. This is done by building a front-end to YouTube (which checks the copyright permissions for you).
Building a free downloadable text book on computer programming for university, college, community college, and high school classes in computer programming.
If you like the idea of this project, then please donate some money.
send donations to: Milo
PO Box 1361
Tustin, California 92781
Supporting the entire project:
If you have a business or organization that can support the entire cost of this project, please contact Pr Ntr Kmt (my church)
UNIX used as a generic term unless specifically used as a trademark (such as in the phrase UNIX certified). UNIX is a registered trademark in the United States and other countries, licensed exclusively through X/Open Company Ltd.
Names and logos of various OSs are trademarks of their respective owners.