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
delete string in a text file leaving the first occurrence gopskrish UNIX for Dummies Questions & Answers 12 10-31-2006 07:32 AM
Searching directory for file that contains some text. LordJezo UNIX for Dummies Questions & Answers 4 04-04-2006 05:58 PM
searching each file in a directory for text jim majors Shell Programming and Scripting 2 03-23-2006 05:29 PM
Searching for directory Enigma23 Shell Programming and Scripting 8 04-08-2005 06:31 PM
directory searching st00pid_llama Shell Programming and Scripting 2 05-10-2004 04:21 PM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 09-05-2002
Registered User
 

Join Date: Aug 2002
Location: North Carolina, USA
Posts: 25
Arrow Searching a file withoug leaving home directory!!

hello there !

I am in my current working directory, and i want search a file in "dev" directory which is under root(/), but i donot want leave my current working directory.

is it possible to find file like that ?

let us say i am in /home/bin/user/malik/abid directory and i want find a file "testing" which is in "bin" directory.

what should i give command on my pwd to fine file in bin directory.

any suggestion will be appriciated.

Thanks
Abid Malik
Forum Sponsor
  #2  
Old 09-05-2002
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
Read the man page on the find command. No matter where you are, you can find files in other directories (searching all sub-directories)


NAME
find - find files

SYNOPSIS
find path... expression

DESCRIPTION
The find utility recursively descends the directory hierar-
chy for each path seeking files that match a Boolean expres-
sion written in the primaries given below.
  #3  
Old 09-05-2002
Registered User
 

Join Date: Mar 2002
Location: London, England
Posts: 262
Try

find /bin -name testing 2>/dev/null
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:54 PM.


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

Content Relevant URLs by vBSEO 3.2.0