LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-06-2009, 02:39 PM   #1
ellentk
LQ Newbie
 
Registered: Jun 2009
Posts: 2

Rep: Reputation: 0
Using Linux to remove directory containing invalid windows filenames?


I have a directory on a windows 98 computer containing about 30,000 files with invalid windows filenames. (The PC crashed and mangled the contents of the firefox cache directory.)

I'd like to use BootE Linux (which boots from a floppy) to delete the cache directory. Will the rm command remove any directory regardless of its contents?

Thanks.

Ellen
 
Old 06-06-2009, 02:42 PM   #2
eco
Member
 
Registered: May 2006
Location: BE
Distribution: Debian/Gentoo
Posts: 412

Rep: Reputation: 48
yup!

That was easy. You might run an 'rm -rf' of the folder though though. Read the man page first.
 
Old 06-08-2009, 01:06 PM   #3
ellentk
LQ Newbie
 
Registered: Jun 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks!
 
Old 06-08-2009, 02:51 PM   #4
ceantuco
Member
 
Registered: Mar 2008
Location: New Jersey
Distribution: CentOS, Debian, Kali
Posts: 577

Rep: Reputation: 37
Wink

Quote:
Originally Posted by eco View Post
yup!

That was easy. You might run an 'rm -rf' of the folder though though. Read the man page first.
be careful... this is a powerful command.
 
Old 06-08-2009, 11:46 PM   #5
rikxik
Member
 
Registered: Dec 2007
Posts: 88

Rep: Reputation: 19
Quote:
Originally Posted by ceantuco View Post
be careful... this is a powerful command.
Yep - 20 butterflies die a painful death everytime u run that
(no offense - just joking)
 
Old 06-09-2009, 01:52 PM   #6
ceantuco
Member
 
Registered: Mar 2008
Location: New Jersey
Distribution: CentOS, Debian, Kali
Posts: 577

Rep: Reputation: 37
Lightbulb

Quote:
Originally Posted by rikxik View Post
Yep - 20 butterflies die a painful death everytime u run that
(no offense - just joking)
why don't you try # rm -rf /homeand count how many butterflies die... heheheheheheh
no offense just joking!
 
Old 06-10-2009, 12:14 AM   #7
rikxik
Member
 
Registered: Dec 2007
Posts: 88

Rep: Reputation: 19
Quote:
Originally Posted by ceantuco View Post
why don't you try # rm -rf /homeand count how many butterflies die... heheheheheheh
no offense just joking!
lol - if I had to finish a species, won't I prefer # rm -fr /
 
Old 06-11-2009, 10:23 AM   #8
ceantuco
Member
 
Registered: Mar 2008
Location: New Jersey
Distribution: CentOS, Debian, Kali
Posts: 577

Rep: Reputation: 37
I was just trying to kill butterflies... if you really want to finish species you should #shred -vzf -n 100 /
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
script to remove spaces from multiple filenames jeffreybluml Linux - Newbie 36 07-31-2013 03:10 AM
please help me remove the spaces in filenames in a directory! asilentmurmur Linux - Newbie 3 07-14-2006 08:17 PM
need help with script to remove all metachars from filenames BrianK Programming 5 08-21-2005 12:10 AM
Windows unable to read full filenames from CD burnt on linux wearetheborg Linux - Software 6 09-14-2004 07:40 PM
Copying Long Filenames from Win2k to a Linux Samba directory brianabroad Linux - General 0 10-30-2003 01:41 AM


All times are GMT -5. The time now is 10:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration