Author Topic: tasklist? taskkill?  (Read 5374 times)

0 Members and 1 Guest are viewing this topic.

Offline rabbit

  • x86
  • Hero Member
  • *****
  • Posts: 8092
  • I speak for the entire clan (except Joe)
    • View Profile
tasklist? taskkill?
« on: December 11, 2005, 11:54:40 pm »
Linux equivs?

Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: tasklist? taskkill?
« Reply #1 on: December 11, 2005, 11:57:44 pm »
Linux equivs?

If you want a full list of processes running:

$ ps -A


If you want to search for a specific process running:

$ ps -aux | grep <proccess_name>


And if you want to kill a process the "unclean" way:

$ killall -9 <process_name>


That's how I know to do it, anyway.  Some of the more linux-literate people may know better ways. :)

Offline Ergot

  • 吴立峰 ^_^ !
  • x86
  • Hero Member
  • *****
  • Posts: 3724
  • I steal bandwidth. p_o
    • View Profile
Re: tasklist? taskkill?
« Reply #2 on: December 12, 2005, 12:02:27 am »
ps - Lists processes
ps -aux - Lists all processes
kill - Kills process, you need to get the PID from ps.
kill - 9 - If kill fails, this is the "unclean" way like Sidoh said.
top - Lists processes and CPU/Mem usages in realtime

Front-ends(?)
Ksysguard - For KDE
System Monitor - For Gnome
Who gives a damn? I fuck sheep all the time.
And yes, male both ends.  There are a couple lesbians that need a two-ended dildo...My router just refuses to wear a strap-on.
(05:55:03) JoE ThE oDD: omfg good job i got a boner thinkin bout them chinese bitches
(17:54:15) Sidoh: I love cosmetology

Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: tasklist? taskkill?
« Reply #3 on: December 12, 2005, 12:09:06 am »
$ ps -aux lists all processes with a bunch of fancy information! :P

$ ps -A is a plain list of processes, but I guess that's not very useful. :)

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: tasklist? taskkill?
« Reply #4 on: December 12, 2005, 12:06:11 pm »
ps - Lists processes
ps -aux - Lists all processes
kill - Kills process, you need to get the PID from ps.
kill - 9 - If kill fails, this is the "unclean" way like Sidoh said.
top - Lists processes and CPU/Mem usages in realtime

Front-ends(?)
Ksysguard - For KDE
System Monitor - For Gnome


Beautiful, you stole my answer! :P

Offline rabbit

  • x86
  • Hero Member
  • *****
  • Posts: 8092
  • I speak for the entire clan (except Joe)
    • View Profile
Re: tasklist? taskkill?
« Reply #5 on: December 12, 2005, 07:02:50 pm »
Well I don't use Gnome so I don't care :P

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: tasklist? taskkill?
« Reply #6 on: December 12, 2005, 07:46:02 pm »
"top" is probably what you're looking for

Offline Krazed

  • Moderator
  • Hero Member
  • *****
  • Posts: 1822
    • View Profile
Re: tasklist? taskkill?
« Reply #7 on: December 12, 2005, 07:48:50 pm »
tasklist = top, or ps -aux (That's what I always did.)

kill PID (Process ID) would end a program while following the program's closing procedure, sends the "SIGTERM" signal.

kill -9 PID would end a program with the "SIGKILL" signal, which instantly kills it, without caring what the program has to say about it or wants to do before closing.
It is good to be good, but it is better to be lucky.

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: tasklist? taskkill?
« Reply #8 on: December 12, 2005, 07:54:48 pm »
"top" can do all of those, and more.  And is easier to use.  But yes, those are also useful programs :P

Offline Ergot

  • 吴立峰 ^_^ !
  • x86
  • Hero Member
  • *****
  • Posts: 3724
  • I steal bandwidth. p_o
    • View Profile
Re: tasklist? taskkill?
« Reply #9 on: December 12, 2005, 07:56:16 pm »
Wow I never knew top could kill...
Who gives a damn? I fuck sheep all the time.
And yes, male both ends.  There are a couple lesbians that need a two-ended dildo...My router just refuses to wear a strap-on.
(05:55:03) JoE ThE oDD: omfg good job i got a boner thinkin bout them chinese bitches
(17:54:15) Sidoh: I love cosmetology

Offline Krazed

  • Moderator
  • Hero Member
  • *****
  • Posts: 1822
    • View Profile
Re: tasklist? taskkill?
« Reply #10 on: December 12, 2005, 09:10:02 pm »
I've never used top, so eh.
It is good to be good, but it is better to be lucky.

Offline rabbit

  • x86
  • Hero Member
  • *****
  • Posts: 8092
  • I speak for the entire clan (except Joe)
    • View Profile
Re: tasklist? taskkill?
« Reply #11 on: December 12, 2005, 09:19:53 pm »
tasklist = top, or ps -aux (That's what I always did.)

kill PID (Process ID) would end a program while following the program's closing procedure, sends the "SIGTERM" signal.

kill -9 PID would end a program with the "SIGKILL" signal, which instantly kills it, without caring what the program has to say about it or wants to do before closing.
Ah...I remember, I think it was Newby, who said "Windows is like 'please stop running now' but Linux is like 'DIE BITCH!'".  :P

Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: tasklist? taskkill?
« Reply #12 on: December 12, 2005, 09:24:01 pm »
Ah...I remember, I think it was Newby, who said "Windows is like 'please stop running now' but Linux is like 'DIE BITCH!'".  :P

LMFAO

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: tasklist? taskkill?
« Reply #13 on: December 12, 2005, 09:56:36 pm »
tasklist = top, or ps -aux (That's what I always did.)

kill PID (Process ID) would end a program while following the program's closing procedure, sends the "SIGTERM" signal.

kill -9 PID would end a program with the "SIGKILL" signal, which instantly kills it, without caring what the program has to say about it or wants to do before closing.
Ah...I remember, I think it was Newby, who said "Windows is like 'please stop running now' but Linux is like 'DIE BITCH!'".  :P

Haha, yeah, a non-root process can't catch/discard SIGKILL.  However, a process running as root can, and a process in kernel mode ignores it. 

If you're reading from a harddrive that crashes, so that it gets stuck in an infinite loop in kernel mode, you can't kill it either.