[sudo-users] Is there a way to increment SHLVL when using sudo?

Leroy Tennison leroy at datavoiceint.com
Mon Feb 6 08:18:30 MST 2017


I'm trying to tell how "deep" I am in levels of shell. I realize this is not totally possible unless ssh could increment SHLVL as well (and possibly other programs I'm not aware of). However, I'm thinking this would at least tell me how many levels of shell I have on the current system. 


More information about the sudo-users mailing list