Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 883407
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T12:35:01+00:00 2026-05-15T12:35:01+00:00

server01:/# ps -ax | grep java Warning: bad ps syntax, perhaps a bogus ‘-‘?

  • 0
server01:/# ps -ax | grep java

Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html

 7342 pts/3    Z      0:00 [java] <defunct>

 7404 pts/3    S+     0:00 grep java


server01:/# kill 7342

server01:/# ps -ax | grep java

Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html

 7342 pts/3    Z      0:00 [java] <defunct>

 7406 pts/3    S+     0:00 grep java


server01:/# 

In the above I am using ps command to know the pid of the java process which is 7342 in the above case.

Then I killed that process using kill command.
But that is not killed because again ps command shows java process with pid 7342.

Should I use some else command to kill the process and Why kill is not able to kill the process

Thanx

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T12:35:02+00:00Added an answer on May 15, 2026 at 12:35 pm

    Linux supports the BSD style switches to the ps command (without the leading – … dash/hyphen). If one supplies the hypen then the GNU coreutils version of ps (the one which is standard on mainstream Linux distributions) will attempt to interpret the switches as SysV compatible. This is the source of your error.

    I’d recommend using the BSD form of the switches and look up the -o option to specify an output format consisting ONLY of the PID of the matching processes.

    Also you’re attempting to kill a zombie. As you’ve discovered that’s a futile effort. A zombie is a placeholder in the process able for a process which is already dead. It remains in the process table until its parent process “reaps” its exit code. If the parent never does a wait() system call then the entry will stay there until after the parent is killed, at which point the zombie (and any other orphaned processes) will be inherited by the init process. The normal init under Linux (or any other form of UNIX) periodically reaps all dead processes (zombies).

    Conceptually every process that exits on a UNIX/Linux system spends a small amount of time as a “zombie” … that is there should always be a period of time between the process’ termination and the time when some other process reads its exit value (even if only to discard it, as init does).

    This question really should go on ServerFault

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

my site is : http://server1.bioprotege-inc.net/permanent_Files/digichat_admin_panel/#Home the link that says home drops down the content
Interested in upgrading JAVA VERSION from JAVA 1.5 to JAVA 1.6 [oracle@server301 /]$ java
How does the Same Origin Policy apply to the following two domains? http://server1.MyDomain.com http://server2.MyDomain.com
ObjectGetOptions options = new ObjectGetOptions(); ManagementPath p = new ManagementPath(\\\\server01\\root + \\cimv2:Win32_Share); // Make
Dot net 4.0 IIS7 WCF app SQL 2005 standard App is hosted on server1
I'm a newbie to SQL and .Net and this question might be stupid too
If my .NET client uses System.IO.File.Copy to copy a file from \server1\share1\file1.txt to \sever1\share2\file2.txt
with Asp.net 2.0 can a viewstate generated on Server1 be used by server2 in
I wrote an asmx service on one server1 and and asp.net/c# on another server2.
I have a list (list1) with the file names: C:\\Work\\Server1\\CSRegWeb\\Transform\\Faq.xslt C:\\Work\\Server1\\CSRegWeb\\Content\\Axxess.xml C:\\Work\\Server1\\CSRegWeb\\kleenex.aspx C:\\Work\\Server1\\CSRegWeb\\Content\\dell.xml I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.