Re: sudo and globbing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Feb 03, 2003 at 05:24:36AM -0800, Harry Putnam wrote:
> I didn't notice anything in man sudo to explain why globbing doesn't
> work using sudo.  At least in this instance
> 
>     sudo ls /root/inst*
>   ls: /root/inst*: No such file or directory

The correct syntax would be:
sudo sh -c "ls /root/inst*"

This is somewhat documented in the sudo man pages in the EXAMPLES
section.

-- 
Ed Wilts, Mounds View, MN, USA
mailto:ewilts@ewilts.org
Member #1, Red Hat Community Ambassador Program



-- 
Psyche-list mailing list
Psyche-list@redhat.com
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux