Re: make ls not show dot-files as root

2008-07-29 Thread Marc Espie
On Tue, Jul 29, 2008 at 12:33:54AM +0200, Jesus Sanchez wrote: Hi, using 4.2. Just for curiosity... Can I make ls to NOT show the hidden files (.xinitrc , .vimrc, etc) when using as Root?? Thanks 4 all. Why is this a problem ? When you're root, you really want to see all the files. If

make ls not show dot-files as root

2008-07-28 Thread Jesus Sanchez
Hi, using 4.2. Just for curiosity... Can I make ls to NOT show the hidden files (.xinitrc , .vimrc, etc) when using as Root?? Thanks 4 all.

Re: make ls not show dot-files as root

2008-07-28 Thread Ted Unangst
On 7/28/08, Jesus Sanchez [EMAIL PROTECTED] wrote: Can I make ls to NOT show the hidden files (.xinitrc , .vimrc, etc) when using as Root?? ls * ls | grep -v ^. sudo -u nobody ls find . -name [abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]* -maxdepth 1 -print0 | xargs -0 ls -Cd | sed

Re: make ls not show dot-files as root

2008-07-28 Thread Prabhu Gurumurthy
man ls shows -A option is implicit when using as root. So in short it would be no. On Jul 28, 2008, at 3:33 PM, Jesus Sanchez wrote: Hi, using 4.2. Just for curiosity... Can I make ls to NOT show the hidden files (.xinitrc , .vimrc, etc) when using as Root?? Thanks 4 all.

Re: make ls not show dot-files as root

2008-07-28 Thread Jesus Sanchez
Ted Unangst escribis: On 7/28/08, Jesus Sanchez [EMAIL PROTECTED] wrote: Can I make ls to NOT show the hidden files (.xinitrc , .vimrc, etc) when using as Root?? ls * ls | grep -v ^. sudo -u nobody ls find . -name [abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]* -maxdepth 1

Re: make ls not show dot-files as root

2008-07-28 Thread Martin Toft
On Mon, Jul 28, 2008 at 07:07:55PM -0400, Ted Unangst wrote: On 7/28/08, Jesus Sanchez [EMAIL PROTECTED] wrote: Can I make ls to NOT show the hidden files (.xinitrc , .vimrc, etc) when using as Root?? ls * ls | grep -v ^. You need to escape the dot... e.g. grep -v ^\\\. sudo -u

Re: make ls not show dot-files as root

2008-07-28 Thread Martin Toft
On Tue, Jul 29, 2008 at 01:16:22AM +0200, Martin Toft wrote: You need to escape the dot... e.g. grep -v ^\\\. Two backslashes is enough. My attempt at being a smart ass failed :-)