□ Checking Available shells : cat /etc/shells □ Environment variable for recording depth of shell : SHLVL(=SHell LeVeL) ps.
It is also posted at : cysecguide.blogspot.com/2016/08/checking-available-shell-and-shell-depth.html