The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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
Transfer file from local unix server to remote server indira Shell Programming and Scripting 2 05-03-2007 06:35 AM
Transfer file from local unix server to remote server indira HP-UX 2 05-02-2007 05:15 PM
FTP script for sending a file from one unix directory to another unix server director raja_1234 Shell Programming and Scripting 1 11-30-2006 07:57 AM
Find file on server, searching thru many folders Snakehead UNIX for Dummies Questions & Answers 5 07-06-2006 06:39 PM
Searching for a specific phrase on Unix server mmcaleer UNIX for Dummies Questions & Answers 1 02-07-2005 04:18 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-13-2005
jhmr7 jhmr7 is offline
Registered User
  
 

Join Date: Mar 2005
Posts: 11
searching a file in a unix server

Please let me know which command and its format to use to search for a file.

Windows provides a find option but i would like to know the equivalent in UNIX.

for example i need to search for a file called uv.config and where exactly it is located in a unix server.

TIA.
  #2 (permalink)  
Old 04-13-2005
rocky_triton rocky_triton is offline
Registered User
  
 

Join Date: Apr 2005
Location: Antarctica
Posts: 12
find <start_location> -name "pattern"

here's a couple quick examples:

find . -name "*.txt" (this will return all text files it finds starting in the current directory and going through all subdirectories)

find / -name "*.xml" (this will find all xml files starting from root directory).

man find for more details on the other options.
  #3 (permalink)  
Old 04-13-2005
milhan milhan is offline
Registered User
  
 

Join Date: Oct 2002
Location: /home
Posts: 133
if you make a search in the above button, you will get whole bunch of topics and sufficient information on using find in Unix.
  #5 (permalink)  
Old 06-26-2005
ErNci ErNci is offline
Registered User
  
 

Join Date: Jun 2005
Posts: 24
1: cd /
2: find . -name "uv.config"

Line 1 takes you to base directory
Line 2 searches anywhere below current (which is base direectory) for any files which are match 'uv.config'

or

1: find / -name "uv.config"

Line 1 and 2 combined into 1 line above.

or

1: cd /
2: ls -R | grep 'uv.config'

Line 1 takes you to base directory
Line 2 searches lists all files and below and displays the ones matching "uv.config"
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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




All times are GMT -4. The time now is 10:12 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0