Recently I was wondering why my aliases are not working on libreElec after I log in via SSH. I mean, my .bashrc was properly configured so what ?
So I start to google for explanation. Very quickly I understood, that most probably on libreElec is not used bash shell. ( honestly, what I was thinking, right 😛 ) So question:
What is my shell ?
I’ve found out, on systems I’m using it’s really easy to find out. Path to shell which is currently used is stored in global variable SHELL . So you will quickly find out with command
In my case output was
That is not clear answer, so let’s check /bin/sh more in detail:
ls -l /bin/sh
And we get final answer
/bin/sh -> busybox
So shell which is used on my current libreElec is actually busybox
OK, so I’ve learned how to find out what shell is currently used. But what with my original alias problem ? Well, during looking for answer “.bashrc equivalent for busybox” I’ve found out, that ( at least ) on libreElec, it’s just fine when you place file named
in your home directory 😛 ( no rocket science really )