home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.questions:15286 comp.unix.misc:4871 comp.unix.admin:6960
- Newsgroups: comp.unix.questions,comp.unix.misc,comp.unix.admin
- Path: sparky!uunet!nwnexus!Celestial.COM!ray
- From: ray@Celestial.COM (Ray Jones)
- Subject: Re: Dumb Question...
- Organization: Celestial Software, Mercer Island, WA
- Date: Thu, 07 Jan 1993 18:08:16 GMT
- Message-ID: <1993Jan07.180816.7702@Celestial.COM>
- References: <C0EsA1.3u2@ncifcrf.gov>
- Lines: 29
-
- In <C0EsA1.3u2@ncifcrf.gov> digennar@fcs280s.ncifcrf.gov (Frank S. DiGennaro) writes:
-
- > This might seem a simple question, but here goes... does UNIX have an 'unerase'
- >command similar to DOS?
-
- The general thinking is, "Unix is a grown up OS to be used by grown ups."
- If you tell it to remove a file, it does it, no questions asked, and it is
- forever gone.
-
- Now, having said that, let it be known that all of us, at one time or
- another, have blown away a file that we really needed. There are also
- several ways you can protect yourself in this reguard. If the "rm" command
- is where you are shooting yourself in the foot, you might try:
- alias rm "rm -i" # if you are using the C-shell
-
- rm () {
- rm -i $* # if you are using the bourne shell
- }
- If you you need steel toed shoes for this command, you need a "rm" script that
- copies and deletes (or moves) the file to a "wast basket" and a cron program
- that will dump the waste basket a few days later.
-
- I have a copy of the steel toe version (I need it), let me know and I'll
- send you a copy.
- --
- INTERNET: ray@Celestial.COM Ray A. Jones; Celestial Software
- UUCP: ...!thebes!camco!ray 6641 East Mercer Way
- uunet!camco!ray Mercer Island, WA 98040; (206) 947-5591
- The probability of one or more spelling errors in this missive approaches
-