Setup cygwin to ask before deleting a file?
Larry Hall (Cygwin)
Fri Dec 12 22:10:00 GMT 2008
Kevin M wrote:
> I was wondering if there is a way to setup cygwin to ask before deleting
> files. I'm learning Linux and Cywin and so any help would be appreciated!
Overall, I'd recommend getting yourself a good Linux/Unix utilities book.
You'll learn allot. Also, 'man' and 'info' are your friends. Speficially
in this case 'man rm' will point out to you that there's a '-i' flag
that will accomplish what you want. If you want this when you use 'rm',
you can set up an alias to make 'rm' always equate to 'rm -i'. Check out
'man bash' for information on how to do this with Bash. If you use a
different shell, you can check out the man page for that shell instead.
And just a last book-keeping note - the Cygwin list is not a general
Linux/Unix help list. We like to keep it to Cygwin-specific issues. If
you have a question that doesn't fit into that mold, we prefer you find
another source (book, web site, email list/archive) for your answer.
Larry Hall http://www.rfk.com
RFK Partners, Inc. (508) 893-9779 - RFK Office
216 Dalton Rd. (508) 893-9889 - FAX
Holliston, MA 01746
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
More information about the Cygwin