DragonFly BSD
DragonFly bugs List (threaded) for 2006-07
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: rm -rf and recursive nothing

From: Sascha Wildner <saw@xxxxxxxxx>
Date: Fri, 21 Jul 2006 13:14:19 +0200

Oliver Fromme wrote:
Justin C. Sherrill wrote:
 > dev# ls -la pkgsrc/
 > total 3
 > drwxr-xr-x   2 root  wheel  1024 Jul 20 22:27 .
 > drwxr-xr-x  54 root  wheel  1536 Jul 20 22:27 ..
 > dev# rm pkgsrc
 > rm: pkgsrc: is a directory
 > dev# rm -rf pkgsrc
 > recursively remove pkgsrc?

This might be a dumb question, but why don't you use rmdir?
rmdir is the UNIX command to remove (empty) directories.

Personally I have an alias rd=rmdir (and md=mkdir), which
is a left-over from my old DOS days.  :-)

By the way, shouldn't -f override any previous -i or -I
option?  At least that's what I would expect.  You don't
type -f without a reason.

This has been discussed (to death) before. I'd be all in for that, but other people weren't.



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