Unix/Linux Go Back    


UNIX for Dummies Questions & Answers This forum is closed for new posts. Please post beginner questions to learn unix and learn linux in this forum UNIX for Beginners Questions & Answers

find particular directory

UNIX for Dummies Questions & Answers


 
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 10-10-2007
arulkumar arulkumar is offline
Registered User
 
Join Date: Aug 2007
Last Activity: 26 June 2009, 7:14 AM EDT
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
find particular directory

Hi,

i know only directory name

I want to find location of tat directory(full path)

is there any option to find directory
Sponsored Links
    #2  
Old Unix and Linux 10-10-2007
vino's Unix or Linux Image
vino vino is offline Forum Advisor  
Supporter (in vino veritas)
 
Join Date: Feb 2005
Last Activity: 8 February 2016, 5:12 PM EST
Location: Sydney, Down Under
Posts: 2,848
Thanks: 0
Thanked 13 Times in 13 Posts

Code:
find / -type d -name "dir_name" 2> /dev/null

If there are multiple directories with same name, all of them will show up.
Sponsored Links
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
"-maxdepth 1" argument for Solaris find. Other way to restrict find in only one directory? slashdotweenie UNIX for Dummies Questions & Answers 4 11-18-2011 01:52 PM
Find Directory help brandonpal Shell Programming and Scripting 6 11-21-2010 01:34 PM
Script to find a string in a directory/sub-directory gross UNIX for Dummies Questions & Answers 3 11-13-2008 04:45 PM
how to find a file named vijay in a directory using find command amirthraj_12 UNIX for Dummies Questions & Answers 6 10-25-2008 01:37 PM



All times are GMT -4. The time now is 03:41 AM.