Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I often have several java programs running and I can't tell which one needs to be killed. The command section of the process table only shows java, but doesn't tell me which jar or class files it is running. Edit: Is there a way to see more of the command call from withing KSysGuard?

share|improve this question
up vote 1 down vote accepted
  1. ps aux | grep java
  2. You look for the Process ID(PID) of the process you want and then you use kill command (for how to use kill read my post here)

Also read: here and here and here

An alternative: ps -fp $(pgrep -d, -x java) or you might use htop or top and search for java

share|improve this answer
Something staying with ksysguard would be prefered. – Blake Aug 19 '10 at 16:54

A GUI alternative to Ksysguard is qps. It's perhaps less visually appealing that ksysguard, but it shows a lot more information, including the whole command line.

share|improve this answer

You want the wide output option "w". Using it three times will allow unlimited width.

ps auxwww
share|improve this answer
I was hoping there is a way to see more of the command within ksysguard. – Blake Aug 19 '10 at 16:54

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.