Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Jun 2006 11:11:46 +0100
From:      Alex Zbyslaw <xfb52@dial.pipex.com>
To:        Phil Sweeney <phil@superiorpest.com.au>
Cc:        Denny White <dennyboy@cableone.net>, questions@freebsd.org
Subject:   Re: restoring deleted files
Message-ID:  <448D3DE2.6010003@dial.pipex.com>
In-Reply-To: <Pine.BSO.4.64.0606092245550.192@badboybox.cableone.net>
References:  <MIEPLLIBMLEEABPDBIEGCEEGHIAA.fbsd@a1poweruser.com> <Pine.BSO.4.64.0606092245550.192@badboybox.cableone.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Denny White wrote:

> I hate it & it's aggravating, but it's saved me several
> times from another restore, but in .bashrc I have:
>
> alias rm='rm -i'
>
This is good advice.  You can also alias mv and cp similarly, and also 
set noclobber (tcsh) or its equivalent so that > etc do not overwrite 
existing files.

By using file name expansion (TAB, ^D etc) you can also check whether 
file names exist already or not.

--Alex





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?448D3DE2.6010003>