FIND A DIRECTORY

Hi Experts,

I need to find a directory called linu on a server. I know a couple of filename in that dir such as nuy.sql, nut.sql. Is there a quick and easy way to find this directory? I tired using below scripts. but it is very slow.

find / -name 'nu*'

Please help!!

Thanks! NW
nightworkerAsked:
Who is Participating?
 
sunnycoderCommented:
Hi nightworker,

find / -name linu -type d

May be you can rule out a few directories such as home etc. for which you are sure that directory does not exist there.

If location is not known, then there is no alternative to search ... background it and let it run for a while

Cheers!
Sunnycoder
0
 
ozoCommented:
find / -name 'linu' -type d
0
 
gheistCommented:
You can use 'locate', which builds file database every week from cron or so.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.