[sf-lug] path name expansion

Alex Kleider akleider at sonic.net
Fri Aug 19 09:50:18 PDT 2016


On 2016-08-18 21:45, Daniel Gimpelevich wrote:
> On Thu, 2016-08-18 at 21:41 -0700, Alex Kleider wrote:
>> On 2016-08-18 21:31, Daniel Gimpelevich wrote:
>> > The default shell in 14.04 is bash, even for root.
>> 
>> Would the following not suggest otherwise?
>> alex at X301n3:~/Test$ ls -l $(which sh)
>> lrwxrwxrwx 1 root root 4 Apr  8 16:28 /bin/sh -> dash
> 
> No, because /bin/sh is not the default shell.

Yes, indeed.  With your help and that of Michael's reply my eyes are 
open.
Clearly I should have at least consulted /etc/passwd and the following 
relevant line:
alex:x:1000:1000:Alex Kleider,,,:/home/alex:/bin/bash




More information about the sf-lug mailing list