nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

Linux find and delete files

This is a discussion on Linux find and delete files within the Linux software forums, part of the Linux Getting Started category; hello friends how to find and delete all files having extension and delete them...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 12-20-2006, 03:15 AM
Junior Member
 
Join Date: Dec 2006
Posts: 4
Rep Power: 0
cbzee
Default Linux find and delete files

hello friends
how to find and delete all files having extension and delete them
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 12-20-2006, 03:51 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Any distro with shell
Posts: 919
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Use find command
Code:
find . -name "FILE-TO-FIND"-exec rm -rf {} \;
Find all *.exe file and remove them
Code:
find . -name "*.exe"-exec rm -rf {} \;
See our FAQ for more info http://www.cyberciti.biz/faq/linux-u...-remove-files/
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
  #3 (permalink)  
Old 12-20-2006, 03:53 AM
Senior Member
User
 
Join Date: Dec 2006
Location: /B!n@ry
My distro: openSuSE 10.2
Posts: 127
Rep Power: 0
B!n@ry
Send a message via MSN to B!n@ry
Default

nixCraft,
you got to the post faster than me u really r a speedy guy.
__________________
LivE Free 0r DiE
L!nux rul3z aLL
Reply With Quote
  #4 (permalink)  
Old 12-20-2006, 03:59 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Any distro with shell
Posts: 919
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Looolll

Naa but I have awesome typing speed

if i'm online and noticed something I reply back hit button and some questions are easy
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
  #5 (permalink)  
Old 12-20-2006, 12:01 PM
Senior Member
User
 
Join Date: Dec 2006
Location: /B!n@ry
My distro: openSuSE 10.2
Posts: 127
Rep Power: 0
B!n@ry
Send a message via MSN to B!n@ry
Default

aha I see, I was late to this post not because of the typing speed because me 2 have an automatic typing hands made by linux
But I was answering another post Anyway its good to be in competence to keep moving on.
__________________
LivE Free 0r DiE
L!nux rul3z aLL
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
How do I delete copyright protected files? raj Getting started tutorials 5 03-25-2008 12:48 AM
i need a script to delete one folder with files on my ftp silver_ch Shell scripting 1 03-27-2007 10:15 AM
delete directory linux chiku Linux software 4 07-22-2006 06:56 PM
can ext3 securely delete files Linux software 1 01-11-2006 12:08 PM
find out info. reg. files for each user in the system ganes Solaris/OpenSolaris 6 09-20-2005 06:49 PM


All times are GMT +5.5. The time now is 11:01 PM.


Powered by vBulletin® Version 3.7.3 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36