home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / question / 15286 < prev    next >
Encoding:
Internet Message Format  |  1993-01-07  |  1.7 KB

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