LinuxQuestions.org
Visit Jeremy's Blog.
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 11-17-2008, 02:34 AM   #1
bkcreddy17
Member
 
Registered: Feb 2008
Location: India-Hyderabad
Distribution: RHEL and Fedora
Posts: 171

Rep: Reputation: 15
Thumbs down How to remove Thumbs.db file


We are using samba server for file sharing between Linux-Windows. I had a small problem. When the files are transferring from windows to Linux i am getting a file named Thumbs.db and how do i delete all those files. Is this a correct command?
Code:
sudo find /share/* Thums.db -type f -exec rm '{}' \;
When i used this all Thumbs.db files are deleted along with many other files are gone and my online server is down for 1 and 1/2 hour. What is is the right command? Thank you.
 
Old 11-17-2008, 02:46 AM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
find /share -type f -name 'Thumbs.db' -exec rm {} \;

Always try the find command without the -exec part to check that it works first.
 
Old 11-17-2008, 04:05 AM   #3
bkcreddy17
Member
 
Registered: Feb 2008
Location: India-Hyderabad
Distribution: RHEL and Fedora
Posts: 171

Original Poster
Rep: Reputation: 15
Thank you, i got it.
 
Old 11-17-2008, 04:06 AM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
You may want to disable the creation of the thumbs.db files on the windows side. In the folder options check "Do not cache thumbnails", apply to all and the trick is done.
 
  


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
Bash remove part of a file based on contents of another file bhepdogg Programming 4 01-31-2007 04:13 PM
thumbs mainly down for PCLinuxOS newbiesforever Linux - Distributions 4 04-14-2006 07:19 AM
Thumbs Up To Linux! redfedora88 LinuxQuestions.org Member Success Stories 3 03-22-2005 08:35 PM
2 thumbs up for linux. xode LinuxQuestions.org Member Success Stories 2 11-23-2003 06:57 PM
winex - 5 thumbs up! kazuni LinuxQuestions.org Member Success Stories 8 06-05-2003 08:43 PM


All times are GMT -5. The time now is 09:31 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration