Hallo,
was bewirkt dieser Befehl?
Was bedeutet die Ausgabe, die Zahl?
Danke!
echo $$
Re: echo $$
>
> was bewirkt dieser Befehl?
>
man echo
siehe Abschnitt "Special Parameters" in "info bash"
Special Parameters
------------------
The shell treats several parameters specially. These parameters may
only be referenced; assignment to them is not allowed.
`$'
Expands to the process ID of the shell. In a `()' subshell, it
expands to the process ID of the invoking shell, not the subshell.
>
> Was bedeutet die Ausgabe, die Zahl?
>
$$ ist eine spezielle Shellvariable in der die aktuelle Prozess-Id gespeichert wird.
Mit "echo $$" kannst du dir diese Prozess-Id anzeigen lassen.
> was bewirkt dieser Befehl?
>
man echo
siehe Abschnitt "Special Parameters" in "info bash"
Special Parameters
------------------
The shell treats several parameters specially. These parameters may
only be referenced; assignment to them is not allowed.
`$'
Expands to the process ID of the shell. In a `()' subshell, it
expands to the process ID of the invoking shell, not the subshell.
>
> Was bedeutet die Ausgabe, die Zahl?
>
$$ ist eine spezielle Shellvariable in der die aktuelle Prozess-Id gespeichert wird.
Mit "echo $$" kannst du dir diese Prozess-Id anzeigen lassen.