The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Searching for folders which are over 5 hours old. stevefox Shell Programming and Scripting 4 06-01-2008 08:13 PM
Find and rename all folders with name X. mkingrey UNIX for Dummies Questions & Answers 6 06-06-2007 01:49 PM
find only folders melanie_pfefer UNIX for Advanced & Expert Users 1 11-20-2006 02:47 AM
Searching for SETUID and SETGID using PERL file find with lstat x96riley3 Shell Programming and Scripting 1 03-31-2006 05:33 PM
searching a file in a unix server jhmr7 UNIX for Dummies Questions & Answers 4 06-26-2005 05:42 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-05-2006
Registered User
 

Join Date: Jul 2006
Posts: 3
Find file on server, searching thru many folders

Hi all,

Is it possible to find a file on a server without knowing the file path? And when the file is found is it possible to find out the file path?

I would like to find a file by typing: find server/ -name "filename"
Instead of: find server/folder1/folder2/folder3/ -name "filename"

Can someone help me?

thanks
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 07-06-2006
hu$h's Avatar
Registered User
 

Join Date: May 2006
Posts: 17
Find / -name “name_of_file” would work as it searches the root and down. It would also supply the absolute path within its std output.
Reply With Quote
  #3 (permalink)  
Old 07-06-2006
Registered User
 

Join Date: Jul 2006
Posts: 3
What if I needed to direct my search at a server? Could I use the following?
Find server/ -name “name_of_file”
Reply With Quote
  #4 (permalink)  
Old 07-06-2006
hu$h's Avatar
Registered User
 

Join Date: May 2006
Posts: 17
oh right, i see. you can use a remote shell:

rsh server find / -name "name of file"

or on HP-UX

remsh server find / -name "name of file"

hush
Reply With Quote
  #5 (permalink)  
Old 07-06-2006
Registered User
 

Join Date: Jul 2006
Posts: 3
Hush,

The code you posted doesn't seem to work with what I'm doing.

I'm trying to go through the terminal on an OSX operating system to search on a server. Spotlight is too slow so I'm trying to find other methods of searching.

Also something I forgot to mention. I would only have the beginning portion of the files' name.

Thanks for your help!!

Snakehead
Reply With Quote
  #6 (permalink)  
Old 07-06-2006
hu$h's Avatar
Registered User
 

Join Date: May 2006
Posts: 17
i know very little about mac's, the command must be different. I can say that if you only have a part of the file name then you can use wild cards e.g *.

http://sillydog.org/unix/tasks/defining.php
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 01:28 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0