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

MacGyveR macgyver at thedumbterminal.co.uk
Sat Mar 10 21:57:38 UTC 2012


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.



More information about the Kent mailing list