□ Checking Available shells : cat /etc/shells
□ Environment variable for recording depth of shell : SHLVL(=SHell LeVeL)
ps.
- Checking Shell depth : env | grpe SH
- SHLVL = 1 is a state that only login-shell is executed
- Based on Ubuntu
It is also posted at : cysecguide.blogspot.com/2016/08/checking-available-shell-and-shell-depth.html