Hi all
I would like to know what my current shell is? i.e The shell at the time of login.
I knw the below commands
echo $SHELL
but this is not doing the job..
Any other way to find it?
What is the below line doin?
ps -ef | grep $PPID
Will this fetchn the corret shell the user is in?
vbe
2
grep <youraccount> /etc/passwd...
Hi Vbe
Yes, this is possible. But what in case the user is in a ldap directory?
vbe
5
maybe :
ps -ef|grep "$$"|grep -ve grep -e ps
vbe
7
Quite right radoulov!
But I was expecting someone coming up with a "killer" sed stuff, not something that easy:D
Thanks Vbe and radoulov.
radoulov the command u suggested is gr8...
Thanks all 4 ur help....