12
$\begingroup$

What famous quote does the following terminal session refer to?

$ ps -o ppid= -p $u
28342
$ echo $$
28342
$\endgroup$
1
  • $\begingroup$ That doesn't look like the YAML I know. =x $\endgroup$
    – jpmc26
    Oct 18, 2018 at 1:28

2 Answers 2

9
$\begingroup$

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.

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

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.

$\endgroup$
1
  • 2
    $\begingroup$ 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. $\endgroup$
    – celtschk
    Oct 17, 2018 at 19:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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