I'm wondering whether I've called the shell recursively, is there an easy way to find out? Is any solution specific to the shell? I'm using bash.
Tell me more
×
Server Fault is a question and answer site for
professional system and network administrators. It's 100% free, no registration required.
From the bash manpage:
|
|||
This will catch if you do something like:
Although that won't catch something like if you SSH into localhost.
|
|||
|
|
|
One way is to use pstree:
|
|||
|
|
|
Also useful:
|
|||
|
|