On Sat, Mar 18, 2000 at 07:32:58AM +0000, Richard Adams wrote:
> On Thu, 16 Mar 2000, [EMAIL PROTECTED] wrote about, Re: Linux
>hidden file equivalent:
> > Hi, I'm not sure about other methods, but one simple way to "hide"
> > a file is to give it a name which begins with a dot (.).
> > If you then type "ls" you won't see it.
> > Furthermore: if you type "rm *.*" it will not be removed
> No that cant remove a file with a "leading (.)" because you are saying
> delete files with anything "before" the (.) .
> rm .filename
> rm -rf .*
You might want to be a little careful there. There is a real
good historical reason why "*" does not match anything begining with a
'.'! Think about ".."! :-) If you don't have any "single letter
names (following the dot) then .??* is the safer expression to match
everything beginning with a dot but skipping dot-dot. You might find
that doing an "rm -rf .*" where ".*" matches ".." is likely to have
unforseen consequences. :-)
> > Of course there are still many ways to see (or remove) it.
> > Bye.
> >
> > ---------- original message -------------
> > Hi All;
> > Is there an equivalent to DOS's hidden file in Linux?
> > If so how may I hide a file.
> >
> > Thanks
> > Masoud
> >
> >
> > -
> > To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
> > the body of a message to [EMAIL PROTECTED]
> > Please read the FAQ at http://www.linux-learn.org/faqs
> --
> Regards Richard
> [EMAIL PROTECTED]
> http://people.zeelandnet.nl/pa3gcu/
Mike
--
Michael H. Warfield | (770) 985-6132 | [EMAIL PROTECTED]
(The Mad Wizard) | (770) 331-2437 | http://www.wittsend.com/mhw/
NIC whois: MHW9 | An optimist believes we live in the best of all
PGP Key: 0xDF1DD471 | possible worlds. A pessimist is sure of it!
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs