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
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.
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
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.
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
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
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 :-)
7 matches
Mail list logo