Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Jun 1998 08:21:35 -0700 (PDT)
From:      Dan Busarow <dan@dpcsys.com>
To:        Johann Visagie <wjv@cityip.co.za>
Cc:        Malartre <malartre@aei.ca>, questions@FreeBSD.ORG
Subject:   Re: /root:"chmod 600 .*" nothing work now
Message-ID:  <Pine.BSF.3.96.980616081408.24104A-100000@java.dpcsys.com>
In-Reply-To: <19980616120752.H26576@cityip.co.za>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 16 Jun 1998, Johann Visagie wrote:
> > BTW, the command you wanted was chmod 600 .??*
> 
> But that would miss out any file whose name is a period followed by a single
> character, e.g. ".a".

The original poster wanted to chmod root's dotfiles, .login, .cshrc etc.
But you're right that mine would miss single character dot files.

> What about:
> 
> $ chmod 600 .??* .[!.]

I always try ls -l pattern before doing anything potentially dangerous
that relyies on shell expansion.  Knowing for certain what the expansion
will be can be comforting when issuing an rm -r :)

Dan
-- 
 Dan Busarow                                                  949 443 4172
 DPC Systems / Beach.Net                                    dan@dpcsys.com
 Dana Point, California  83 09 EF 59 E0 11 89 B4   8D 09 DB FD E1 DD 0C 82


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980616081408.24104A-100000>