PDA

View Full Version : [SOLVED] Kill comand , jobs, pd



71GA
March 28th, 2011, 09:56 PM
Hello!

I am learning terminal and i want to kill a process. There are 2 ways to do it i ve heard. 1st way is to type following in terminal:

jobs
[1]+ Running xload &
kill %1
2nd way is to type:

ps
PID TTY TIME CMD
1668 pts/0 00:00:00 bash
5042 pts/0 00:00:00 xload
5043 pts/0 00:00:00 ps
kill 5043

1st example is working, but 2nd isnt. What am i missing?

TY

jwcalla
March 28th, 2011, 10:10 PM
Hello!

I am learning terminal and i want to kill a process. There are 2 ways to do it i ve heard. 1st way is to type following in terminal:

jobs
[1]+ Running xload &
kill %12nd way is to type:

ps
PID TTY TIME CMD
1668 pts/0 00:00:00 bash
5042 pts/0 00:00:00 xload
5043 pts/0 00:00:00 ps
kill 50431st example is working, but 2nd isnt. What am i missing?

TY

You had a typo... you wanted to kill process id 5042.

71GA
March 28th, 2011, 11:36 PM
You had a typo... you wanted to kill process id 5042.

Thank you.