Re: [opensuse] Re: rm broken by POSIX
Joe Zappa wrote:
Linda Walsh wrote:
Used to be rm -fr dir/. was the safest way to clean out a directory, *w/o* deleting the directory. I used it all the time to delete tmp dir contents (not usually '/tmp', but others). Now, there is no easy way. You need to use some incarnation of 'find', with
find / -delete find /tmp/. delete
replacing the previous rm based "solutions".
Neat thing about find / -delete, is that it *seems* (not going to test it here!) to have no protections -- unlike "rm -fr /" where you had to specify some arg to override the default.
This is why I like Linda... she's a true hacker (by the pre-1985 definition)
*blink*. ?? What happened in 1985? War Games? You shoulda seen rumors fly when my employer found out I coded up a remote shell & file server in my office to download all of Intel's SW to my home PC -- all paid for, of course, since Intel only charged disk duplication fees for employees to obtain a copy on 8" floppies, which were generally worthless on 1st generation 8088-based PC's, but as I worked on the compiler back end -- writing an adapter / shell to make their PL/M compiler and linker work on that PC was fairly trivial (circa 82-83). ...thanks? I think?... ;-) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (1)
-
Linda Walsh