[Klug-general] bash autocompletion to get file listing without permission

James Morris jwm.art.net at gmail.com
Sat Mar 10 23:09:21 UTC 2012


On 10 March 2012 21:57, MacGyveR <macgyver at thedumbterminal.co.uk> wrote:
> On Thursday 08 March 2012 21:09:21 James Morris wrote:
>> Hi,
>>
>> On a server where
>>
>> ls: cannot open directory /home: Permission denied
>>
>> I can instead get a listing by using autocompletion. For instance, to
>> get a listing of contents beginning with a in the /home directory:
>>
>> ~a
>>
>> followed by tab-tab.
>>
>> Thoughts?
>>
>> James.
>>
>> _______________________________________________
>> Kent mailing list
>> Kent at mailman.lug.org.uk
>> https://mailman.lug.org.uk/mailman/listinfo/kent
>
>
> That's just username auto completion, eg if you had users "alfred" and
> "arnold", then ls ~a with give this two users.
>

Of course. Thanks. That would explain why it showed what I thought
were hidden directories.



More information about the Kent mailing list