An offline messages just arrive from a fedora newbie trying to polish more of his FTP administration skills.
After quite some time of establishing his fully functional FTP server via VSFTP, he then realized that most of their staff with windows-based desktops usually Selects ALL files, Copy and Paste to FTP site, the normal non-techie way. Unaware that selecting all files from currently working windows folder also selects the Thumbs.db file to be uploaded to that same FTP server.
This Thumbs.db file is by the way created by windows OS for the purpose of thumbnailing cached image files, which has a filesize of 23040. If you've 1,000 of that, you just lost 23MB of disk space.
Now, the answer to his question of deleting Thumbs.db file recursively following the same concept with recent postings. This can be simply done using find.
# find ~ftpusername -name "Thumbs.db" -exec rm -rf {} \;
Adding to cron job on every morning or on daily basis would be
01 07 * * * find ~ftpusername -name "Thumbs.db" -exec rm -rf {} \; > /dev/null 2>&1
Goodluck, hope this helps.
Related External Articles:
What Happens After rm -rf / ?
HowTo: Delete All Thumbs.db Recursively
HowTo: Find And Count JPG Files Recursively
Delete Zero-sized Filename Recursively
Find Hidden Linux File Recursively
Move Linux Files Recursively
Rename Linux File Recursively
Delete Files and Folders Recursively
Subscription
Categories
- HowTos (612)
- Linux Devices (40)
- Linux Diggs (620)
- Linux News (1541)
- Linux Videos (24)
Recent Posts
Blog Archive
-
▼
2008
(2301)
-
▼
February
(25)
- HowTo: Extract Lines That Started With Matching St...
- HowTo: Delete All Thumbs.db Recursively
- HowTo: Handy Linux Network Diagnostic Tool
- HowTo: Display Lines That Starts With A Given String
- HowTo: Find And Count JPG Files Recursively
- HowTo: Do Awk with Loop
- HowTo: Strip Out First Word of Line from Text Files
- HowTo: Highlight Matching Grep Results
- HowTo: GNOME Commander File Manager
- HowTo: Install Plone CMS on Fedora
- HowTo: Thumbnail A Website From Linux Command Term...
- HowTo: Advanced Two-Pane File Manager
- HowTo: Two-Pane GUI File Manager
- Slash Proc - File System Utilities
- HowTo: Drop Down Linux Terminal Console
- HowTo: Image Magics with ImageMagick
- HowTo: Convert JPG Image Files to MPG Video Files
- HowTo: Alternative Way to Convert GIF to PNG
- HowTo: Lock X While Root With ScreenSaver
- HowTo: Encrypted Bandwidth-Efficient Linux Backup ...
- HowTo: Install Java IcedTea on Fedora 8
- HowTo: Simultaneous Install of Sun Java and Java I...
- HowTo: Install K9Copy on Fedora
- HowTo: More of Fedora Themes Package
- HowTo: European Language Fonts Installation on Fedora
-
▼
February
(25)
Thursday, February 28, 2008
HowTo: Delete All Thumbs.db Recursively
Subscribe to:
Post Comments (Atom)
ILoveTux - howtos and news | About | Contact | TOS | Policy
1 comments:
Ideally, the thumbs.db files would never be saved to the hard drive. Without modifying the ftp server code or configuration this can be emulated by using dnotify. dnotify executes a script when a directory it's monitoring changes. The general structure would work like this: on startup dnotify would be run, then the script it executes would delete the thumbs.db files and then start dnotify again.
One such script i have running makes sure each file in a directory has a matching .md5 file, in addition to a compiled MU5SUMS file.
Post a Comment