LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-03-2006, 11:07 PM   #1
DanTaylor
Member
 
Registered: Jan 2006
Distribution: Debian Sarge
Posts: 265

Rep: Reputation: 30
Need to remove files distributed throughout system.


I was working on a script and accidentally created files named 'base' that got distributed throughout my filesystem. My question is this - are there any system files that are named 'base' that I need to make sure I don't remove? I was just going to write another script that would go through and take them all out, but I wasn't sure I wouldn't ruin anything.
 
Old 04-04-2006, 12:57 AM   #2
GrueMaster
Member
 
Registered: Aug 2005
Location: Oregon
Distribution: Kubuntu.
Posts: 848

Rep: Reputation: 30
An easy way to find out is to use find. "find / -name base" will return all files and subdirectories matching that name. From there you can figure out if global deletion is going to work.

To delete, append "-exec rm {} \;" to the find command above.
 
Old 04-04-2006, 06:36 PM   #3
DanTaylor
Member
 
Registered: Jan 2006
Distribution: Debian Sarge
Posts: 265

Original Poster
Rep: Reputation: 30
Thanks for the help.
 
Old 04-05-2006, 05:15 AM   #4
lurker79
Member
 
Registered: Jan 2005
Location: UK
Posts: 55

Rep: Reputation: 16
I would append -ok rm {} \;
instead of exec as ok will prompt you before it runs rm on those files just in case.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fam with Distributed File System libertarian Linux - Software 0 02-15-2006 05:46 AM
Does your *nix system participate in a distributed computing project? sether Linux - General 9 12-11-2004 07:01 AM
Linux for distributed system AdamTheFirst Linux - Hardware 4 11-05-2004 01:24 AM
Linux for distributed system AdamTheFirst Linux - Distributions 1 11-04-2004 03:38 PM
Distributed file system in Linux? longblock454 Linux - Networking 4 11-02-2004 05:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:15 AM.

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
Open Source Consulting | Domain Registration