Dan Widyono on 1 Feb 2006 17:30:24 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Interactive rm


> How can I restore rm's default behavior so that "rm *" requires
> confirmation, but "rm specified_file" does not?

I don't believe this is how rm works by default.  The other suggestions to
set an alias to "rm -i" will make rm ask for confirmation regardless of a
specified file or fileglob (per Redhat's versions at least).

You can have rm default to always asking (using alias method), and then
/bin/rm <file> to override it (or surround with single quotes, like so:

	'rm' <file>

).

Dan W.
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug