Today (Saturday) We will make some minor tuning adjustments to MySQL.

You may experience 2 up to 10 seconds "glitch time" when we restart MySQL. We expect to make these adjustments around 1AM Eastern Daylight Saving Time (EDT) US.


Find the location of particular file and directory


 
Thread Tools Search this Thread
# 1  
Find the location of particular file and directory

hi all,

i am new to UNIX environment.

i have a file and directory with same name, i don't know the location

I want to find location of that file and directory.

please suggest a solution.

Last edited by joeyg; 02-21-2013 at 10:47 AM..
# 3  
thanks for ur quick reply.

i have tried and succeeded in finding file and directory in two different queries.

but i don't know how to find those two in single query.Smilie

---------- Post updated at 07:41 PM ---------- Previous update was at 06:59 PM ----------

anybody please suggest me
# 4  
For that you would have to be more explicit:
The easiest being by showing us the 2 command you used, and say you the same result in one command line... Smilie
# 5  
Code:
find . -type d -name "siva"

---------- Post updated at 07:59 PM ---------- Previous update was at 07:55 PM ----------

Code:
find . -name 'siva'

# 6  
I always thought your second code would give both... Is it not the case? So what OS are you using then?

What is the output of ?
Code:
 find .  -name 'siva' -exec ls -ld {} \;

 

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Find and Copy file of specific location
yadavricky
Dear All, I need to transfer all files present in one location to another but those files should be of specific extension like. Find and copy all files of extension .xls, .pdf, .txt from location usr/tmp to location /per/Treat... Shell Programming and Scripting
6
Shell Programming and Scripting
How to find a existing file location and directory location in Solaris box?
buzzme
Hi This is my third past and very impressed with previous post replies Hoping the same for below query How to find a existing file location and directory location in solaris box... Shell Programming and Scripting
1
Shell Programming and Scripting
using find to go directly into a directory location
bjhum33
is there any other useful command to go into a specific directory and not go into its subdirectories that operates similar to find.? (it will return the full pathname?) or is there any way to make find not go into the subdirectories of the specified directory? This is on ksh as well.... Shell Programming and Scripting
3
Shell Programming and Scripting
How to find a file if we dont know exact location of file ?
tusharjoshi
Hi I want know "How to find a file if we dont know exact location of file ?" Thanks, Tushar Joshi:)... UNIX for Dummies Questions & Answers
9
UNIX for Dummies Questions & Answers
Find a pattern in a file at a particular location
sparks
Hi all, I have a question on how to search for a pattern in a file and return a value if it is present at that particular location. How to read each line and each character for the pattern in the file of any format. Eg for the file format: attached the file... Shell Programming and Scripting
1
Shell Programming and Scripting

Featured Tech Videos