Monday, 21 November 2011

Run the process,see it,and kill it.

This entry will help you how to run the process,see the running process and even to kill it using terminal.For refreshing,terminal is the brain of the linux operating system.All the process controlled by yourself.This is one of the special of the terminal.Lets proceed to the code.


--------Remember.This command is very dangerous.Beware while using it else it may harm your machine-----------


1.run the process.

                 Simply type the program name if you want to run it.Example, xclock.This command will run xclock which is an ancient clock.(hehe)


2.List the running process.


       for listing the process run,simply type "ps".If you want to list all,simply type "ps -aux".For listing specified process,simply run "ps -aux |grep (program name)"
.(see the picture).


3.killing process.

     This is the most dangerous one if you mis-kill the process.Remember.never kill the process that running with root privilege.It may make your system down.So beware about to using it.Lets proceed to the command.

simply type "kill -9 [4 digits number that represent as the process]"-see the picture.

If you are having trouble with some apps is not responding,you are advised to use this technique.
1.press ctrl+alt+f2
2.log in using your user name and password
3.run "ps -aux |grep (damn apps name)"
4.confirm the process number
5.run "kill -9 [damned number]
6.press ctrl+alt+f7 for exit the shell and back to gui.

        I hope this entry will help you for those who are new in linux.Thanks for reading.:)

No comments:

Post a Comment