Re: script to remove dot-files
From: Pål Monstad (pal.monstad_at_pm-data.no)
Date: 02/01/05
- Next message: albright: "Re: Help configuring a consumer Linux workstation"
- Previous message: ray: "Re: ISO to USB Pen Drive"
- In reply to: Thor: "Re: script to remove dot-files"
- Next in thread: Wim Cossement: "Re: script to remove dot-files"
- Reply: Wim Cossement: "Re: script to remove dot-files"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 1 Feb 2005 17:05:07 +0100
"Thor" <thor@valhalla.bbs.org.nz> skrev i melding
news:ctndle$e40$1@lust.ihug.co.nz...
> Chris F.A. Johnson wrote:
>
> > On Mon, 31 Jan 2005 at 22:22 GMT, Bill Unruh wrote:
> >> Chris Tunnell <insert_last_name@mail.utexas.edu> writes:
> >>
> >>
> >>>Why do you need a script? I just rm .*, you get an error but so what?
> >>
> >> That is pretty awful. That includes the directories . and .. Ie it
could
> >> totally land you in the soup.
> >
> > Of course it won't. If you do rm on a directory, you will be told
> > that is it's directory and you cannot rm it. (You can with rm -f,
> > or rmdir.)
> >
> >> To do . files you MUST do
> >> .??*
> >> at least. That makes sure that the . files are at least 3 letters long
> >> (unlike . and ..)
> >
> > Not necessary.
> >
> >>>Pål Monstad wrote:
> >>>> I need to remove a lot of hidden files (dot-files) form /home. Anyone
> >>>> who knows about a script to do the job?
> >
>
> I wonder why you would want to do that at all. Are you trying to write a
> script that will trash someone else's system, I certainly can't see the
> point of doing it to your own.
The reason is simple. I run Samba with several hundred users, and each user
is auto generated from a script. I forgot to remove the default files in
/etc/skel, so the files where copied to each users home directory. As Samba
users on Win machines they don't need the dot files, and they never log on
to a Linux machine.
-- Pål Monstad
- Next message: albright: "Re: Help configuring a consumer Linux workstation"
- Previous message: ray: "Re: ISO to USB Pen Drive"
- In reply to: Thor: "Re: script to remove dot-files"
- Next in thread: Wim Cossement: "Re: script to remove dot-files"
- Reply: Wim Cossement: "Re: script to remove dot-files"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|