On Tue, 21 Feb 2012 09:28:12 +1100
Cameron Simpson <c...@zip.com.au> wrote:

> On 20Feb2012 13:29, Fedora Linux <fedorali...@toursbymexico.com> wrote:
> | I created a script
> [...]
> | rm -fr /tmp/*
> | rm -fr /tmp/.*
> 
> Just a remark. DO NOT DO THIS!
> 
> Other program may well have stuff in /tmp active by the time your script
> runs. It MUST NOT blow things away in a careless and untargeted way like
> this.


Also don't do it because  rm -rf /tmp/.* matches /tmp/.. aka /

and you really don't want to go there...

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org

Reply via email to