How to determine the subshell 'level' in bash?

by dCSeven   Last Updated March 14, 2019 20:00 PM

When entering subshells in bash with e.g. su, bash, vim (:sh command there), I occasionally find myself in a situation, where I don't know how deep I went (i.e how often I am allowed to exit to be at a specific position; reminds me a bit of the film Inception;) ).

Is there any tool that can show this subshell list/tree?

Tags : linux bash

Answers 1

You could use command pstree. It shows process tree. Example: Process tree with different shells

Alexander Tolkachev
Alexander Tolkachev
March 14, 2019 19:55 PM

Related Questions

Updated April 16, 2015 05:00 AM

Updated March 31, 2015 06:00 AM

Updated June 16, 2015 10:00 AM

Updated August 23, 2015 19:00 PM

Updated August 31, 2015 19:00 PM