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

  • Home
  • SEARCH
  • 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 8667831
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T18:04:06+00:00 2026-06-12T18:04:06+00:00

from reading docs and online most people have been saying that to kill a

  • 0

from reading docs and online most people have been saying that to kill a process in linux, only the command kill “pid” is needed.

For example to kill memcached would be kill $(cat memcached.pid)

But for pretty much every process that i’ve tried to kill including the one above, this would not work. I managed to get it to work with a different command:

ps aux | grep (process name here)

That command, for whatever reason would get a different pid, which would work when killing the program.

I guess my question is, why are there different pid’s? Isn’t the point of an id to be unique? Why do celery, memcached, and other processes all have a different pid’s when using the aux | grep command, versus the pid in the .pid file? Is this some kinda error on my configuration or is it ment to be like this?

Also, where is it possible to get all arguments and descriptions for an executable in linux?

I know the “man” command is useful for some functions, but it wont work for many executables, like celery for example.

Thanks!

  • 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-06-12T18:04:07+00:00Added an answer on June 12, 2026 at 6:04 pm

    The process ID (pid) is assigned by the operating system on-the-fly when a process starts up. It’s unique in the sense that no two processes have the same ID. However, the actual value is not guaranteed to be the same from one run of the process to another. The best way to think of it is like those “now serving” tickets:

    please take a number

    You are correct that you can look up an ID via ps and grep, though you may find it easier to just use:

    pgrep (process name here)
    

    Also, if you just want to kill the process, you can even skip the above step and use:

    pkill (process name here)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

From reading the Apple Docs on Core Data, I've learned that you should not
From reading the RFC it appears that CID can/must only contain characters from the
What I have been able to grasp from reading the source and documentation from
I'v been reading through the Apple Docs, read through a couple tutorials online, and
From reading the memory management docs in the SDK, I gathered that factory methods
I'm not familiar with Filnet P8. My assumptions from reading some online docs is
From reading the docs I can tell that allowForceBuild will turn off the force
Some questions that I couldn't figure out from reading the docs and some other
Reading the docs, I'd expect $(#wrap2).remove(.error) to remove all .error elements from #wrap2 .
From reading the NERDTree documentation on github, I've learned that I can do such

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.