From owner-freebsd-fs@FreeBSD.ORG Sat Nov 26 18:34:04 2005 Return-Path: X-Original-To: freebsd-fs@freebsd.org Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E5CC816A41F for ; Sat, 26 Nov 2005 18:34:04 +0000 (GMT) (envelope-from bv@bilver.wjv.com) Received: from wjv.com (fl-65-40-24-38.sta.sprint-hsd.net [65.40.24.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4285543D91 for ; Sat, 26 Nov 2005 18:34:04 +0000 (GMT) (envelope-from bv@bilver.wjv.com) Received: from bilver.wjv.com (localhost.wjv.com [127.0.0.1]) by wjv.com (8.13.5/8.13.1) with ESMTP id jAQIY01n070114 for ; Sat, 26 Nov 2005 13:34:00 -0500 (EST) (envelope-from bv@bilver.wjv.com) Received: (from bv@localhost) by bilver.wjv.com (8.13.5/8.13.1/Submit) id jAQIXtNG070111 for freebsd-fs@freebsd.org; Sat, 26 Nov 2005 13:33:55 -0500 (EST) (envelope-from bv) Date: Sat, 26 Nov 2005 13:33:55 -0500 From: Bill Vermillion To: freebsd-fs@freebsd.org Message-ID: <20051126183355.GA70009@wjv.com> References: <200511261817.jAQIHk09096365@lurza.secnetix.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200511261817.jAQIHk09096365@lurza.secnetix.de> Organization: W.J.Vermillion / Orlando - Winter Park ReplyTo: bv@wjv.com User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on bilver.wjv.com Subject: Re: remind me ... (file undelete on FreeBSD 5.4) X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bv@wjv.com List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Nov 2005 18:34:05 -0000 While stranded on the shoulder of the Information Superhiway and trying to flag down some passing bytes Oliver Fromme said "Bits don't fail me now", and continued with: > user wrote: > > ln -s /some/dir/somewhere local > > > > (used the symlink named local for a while) > > rm -rf local > > local still exists in my current working directory, but now > > /some/dir/somewhere is gone. > > So I rm -rf'd a symlink. I just wanted to delete the link, and of course, > Then why did you specify the -rf options in the first place? > UNIX usually does exactly what you tell it to do. That's > not a bug, it's a feature. > I know poeple who always type "rm -rf", no matter what they > want to delete. It's kind of a finger alias: Whenever they > type "rm", their fingers automatically add "-rf". I don't > know what the cause of that behaviour is (maybe they're too > lazy to think about it), but it definitely is dangerous, as > the above example shows. It's better to think first before > using the -rf options, especially when there's no backup. Slight topic drift - but related. When your fingers automatically do certain things after a certain pattern it's basically an autonomic reflex. It's one finger following another why players of musical instruments repeat hard passages until they get them correct. After enough practice they don't have to work at the fingering - such as in a very complex keyboard piece - as the finger have been trained to do certain sequences automatically. You've probably noticed this if you are a fast touch typist when you go to type a word you don't use often but it starts with the same pattern as a word you quite often. That's part of being a human :-) Bill -- Bill Vermillion - bv @ wjv . com