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
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