Re: cleanup a directory
- From: Kamaraju S Kusumanchi <kamaraju@xxxxxxxxxxxxxx>
- Date: Wed, 27 Feb 2008 11:53:48 -0500
Jerome BENOIT wrote:
Hello List,
to clean some directories of mine, I use
rm -rf *
but files named as `.log' are not removed.
Is there a better way to do so ?
Go to the previous directory and then remove the directory using rm -rf.
This will remove other hidden files along with the .log files.
I tend to resist the use of * when using rm -rf. I usually work with a lot
of terminals open (inside konsole). So the probability of being in the
wrong directory and removing its contents is large if I use '*' with
rm -rf. But when the directory name is explicitly specified, the
probability of removing the wrong directory is small. YMMV.
hth
raju
--
Kamaraju S Kusumanchi
http://www.people.cornell.edu/pages/kk288/
http://malayamaarutham.blogspot.com/
--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
- References:
- cleanup a directory
- From: Jerome BENOIT
- cleanup a directory
- Prev by Date: Re: Loading modules during startup
- Next by Date: Re: Custom Kernels and 2.6.24
- Previous by thread: Re: cleanup a directory
- Next by thread: Re: cleanup a directory
- Index(es):
Relevant Pages
|