How to Kill a Job in Unix


The Unix operating system, like any other computer operating system, gives users the ability to run programs in order to accomplish tasks. If a program becomes unruly or starts consuming too much memory, you can "kill" it by running a command in the command line.

  • Log on to your Unix system as a user with root privileges.

  • Open the command line terminal through a desktop shortcut or through the programs menu.

  • Type "jobs -l" into the command line (without quotes) and press "Enter." Note the number contained in the brackets next to the job you wish to kill, as you will need this in the next step.

  • Type "kill -9 %x" (without quotes), where "x" is the number you noted in Step 3. Press the "Enter" key to immediately terminate the job.

Related Searches


Promoted By Zergnet


You May Also Like

Related Searches

Check It Out

Geek Vs Geek: Robot battles, hoverboard drag race, and more

Is DIY in your DNA? Become part of our maker community.
Submit Your Work!