public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Setup cygwin to ask before deleting a file?
@ 2008-12-12 21:55 Kevin M
  2008-12-12 22:09 ` Greg Chicares
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Kevin M @ 2008-12-12 21:55 UTC (permalink / raw)
  To: cygwin

Hello,
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!

Thanks!
Kevin M




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Setup cygwin to ask before deleting a file?
  2008-12-12 21:55 Setup cygwin to ask before deleting a file? Kevin M
@ 2008-12-12 22:09 ` Greg Chicares
  2008-12-12 22:10 ` Larry Hall (Cygwin)
  2008-12-13  1:38 ` sowiso
  2 siblings, 0 replies; 4+ messages in thread
From: Greg Chicares @ 2008-12-12 22:09 UTC (permalink / raw)
  To: cygwin

On 2008-12-12 21:54Z, Kevin M wrote:
>
> I was wondering if there is a way to setup cygwin to ask before 
> deleting files.

Is
  rm --interactive [files]
what you want?

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Setup cygwin to ask before deleting a file?
  2008-12-12 21:55 Setup cygwin to ask before deleting a file? Kevin M
  2008-12-12 22:09 ` Greg Chicares
@ 2008-12-12 22:10 ` Larry Hall (Cygwin)
  2008-12-13  1:38 ` sowiso
  2 siblings, 0 replies; 4+ messages in thread
From: Larry Hall (Cygwin) @ 2008-12-12 22:10 UTC (permalink / raw)
  To: cygwin

Kevin M wrote:
> Hello,
> 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

_____________________________________________________________________

A: Yes.
 > 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
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re:  Setup cygwin to ask before deleting a file?
  2008-12-12 21:55 Setup cygwin to ask before deleting a file? Kevin M
  2008-12-12 22:09 ` Greg Chicares
  2008-12-12 22:10 ` Larry Hall (Cygwin)
@ 2008-12-13  1:38 ` sowiso
  2 siblings, 0 replies; 4+ messages in thread
From: sowiso @ 2008-12-13  1:38 UTC (permalink / raw)
  To: cygwin


----- Original Message ----- 
From: "Kevin M" <kmarkle@pbs.org>
To: <cygwin@cygwin.com>
Sent: Friday, December 12, 2008 10:54 PM
Subject: Setup cygwin to ask before deleting a file?


> Hello,
> I was wondering if there is a way to setup cygwin to ask before 
> deleting files.

Alias the stuff:

alias rm='rm -i'

Ridiculously easy, eh?
:-)
-Andreas

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-12-13  1:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-12 21:55 Setup cygwin to ask before deleting a file? Kevin M
2008-12-12 22:09 ` Greg Chicares
2008-12-12 22:10 ` Larry Hall (Cygwin)
2008-12-13  1:38 ` sowiso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).