Go Back   Dedicated Server Hosting | VPS Hosting | Virtual Private Servers Forum > Support > Dedicated hosting
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 06-21-09, 13:05
BOD Member
 
Join Date: Jun 2009
Posts: 51
Default Search for specific filetypes?

I'm not Linux guru, so some of the simplest things sometimes escapes me. What I want to know is how do you search for specific file types on your server (like, for example, mp3 files). I want to make sure that certain things are not being upload to the server by my clients.
Reply With Quote
  #2 (permalink)  
Old 06-22-09, 05:45
BOD Member
 
Join Date: Jun 2009
Posts: 48
Default

That's actually very easy to do. Just login via SSH to your server and type in the following command:

locate *.mp3

That will search for all files with the .mp3 extension. You can modify that to search other file types as well.
Reply With Quote
  #3 (permalink)  
Old 06-22-09, 07:14
Moderator
 
Join Date: Mar 2009
Posts: 363
Default

If locate does not work you can use:

find /directorypath -name '*.mp3'

You will need to replace directorypath with the actauly directory like /home
Reply With Quote
Reply


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 02:38.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2008, BODHost.com. All rights reserved.