What famous quote does the following terminal session refer to?

$ ps -o ppid= -p $u
28342
$ echo $$
28342
  • That doesn't look like the YAML I know. =x – jpmc26 Oct 18 at 1:28
up vote 9 down vote accepted

Is it

"I am your father", Vader's famous quote to Luke from Star Wars: Episode V – The Empire Strikes Back (1980) ?

since

I think the first command gives the pid of the parent of the specified process, and the second line confirms that the current process is that process.

  • 3
    Exactly right. For completeness you should also give the movie title, although I guess everyone will immediately know it after reading the quote. – celtschk Oct 17 at 19:19
  • True, edited to include movie title and character details nonetheless – Emnepho Oct 17 at 19:21
  • Actually, Darth Vader doesn't say "Luke, I am your father" - he says "No, I am your father". youtu.be/RgDPi5WvC8M?t=92 – Baard Kopperud Oct 17 at 22:30
  • 6
    My answer doesn't say Luke either... What exactly are you correcting? – Emnepho Oct 17 at 22:35

Hmmm, I think it's

"We're the same, you and me. We're the same, don't you see?" from Falling Down, 1993

Reasoning: Your first command gives the pid of the process designated by $u. The second command gives the pid of the current bash process that you are running. Since both pid's are equivalent, u (you) and the current bash session (me) are the same.

  • 2
    Sorry, but your description of what the first command does is wrong, and consequently so is your conclusion. But you also got quite a few things right. – celtschk Oct 17 at 19:03

Your Answer

 
discard

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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