Kill a process

Posted on 2005-04-14
Last Modified: 2011-04-14
I have a VPS running Linux Redhat.  I SSH into the shell.  I don't have root access.  I started a java application that listens on a port.  I am testing this application so I let it go all night.  Today, I wanted to logini(via SSH) and kill it.  I started it like this ("java <someprogram>&") so it would run in the background and stay running even when I logged out.  So I go to kill it by, "ps" and then to look for the ID and "kill <id>"  But, the process is not listed.  I know it is still running because it is still listening on the port, which I can test by running my client java application(I wrote both btw).  So how do I kill this process?
Question by:turtletimer
    1 Comment
    LVL 23

    Accepted Solution

    ps x

    to list processes with no terminal associated with them.

    You might also try

    ps axu |more

    To list all processes on the system

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
    I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension ( This reminded me of questions tha…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now