Searching for Folder or File from CLI

1,876 views
Skip to first unread message

Daniel Cornel

unread,
Sep 19, 2013, 4:54:20 PM9/19/13
to isilon-u...@googlegroups.com
Hi guys,
Im looking for tips on searching for a file from within the command line interface.  We do not know the path or depth, however we have the spelling of the file and folder it is in.  I have tried using find, but am not able to get it to search subdirectories for results.  Any advice or any other commands to try? I have also used the search option from within file explorer with no results to anything other that whats in the immediate directory.

Jerry Uanino

unread,
Sep 19, 2013, 5:04:53 PM9/19/13
to isilon-u...@googlegroups.com
cd /
find . |grep -i whatever

or 

find . -name ".*filename.*"

or variation of such.


On Thu, Sep 19, 2013 at 4:54 PM, Daniel Cornel <aqua...@hotmail.com> wrote:
Hi guys,
Im looking for tips on searching for a file from within the command line interface.  We do not know the path or depth, however we have the spelling of the file and folder it is in.  I have tried using find, but am not able to get it to search subdirectories for results.  Any advice or any other commands to try? I have also used the search option from within file explorer with no results to anything other that whats in the immediate directory.

--
You received this message because you are subscribed to the Google Groups "Isilon Technical User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isilon-user-gr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Jerry Uanino

unread,
Sep 19, 2013, 5:05:25 PM9/19/13
to isilon-u...@googlegroups.com
cd /ifs instead of / actually is probably what you want.
If your filesystem is big this could take forever though.

Daniel Cornel

unread,
Sep 19, 2013, 5:13:45 PM9/19/13
to isilon-u...@googlegroups.com
Thank you! I used "find . | grep -I foldername" and will let it run. 

Jerry Uanino

unread,
Sep 19, 2013, 5:14:46 PM9/19/13
to isilon-u...@googlegroups.com
thats grep -i as in india, not l as in lima. lower case, (it matters).

Daniel Cornel

unread,
Sep 19, 2013, 5:17:58 PM9/19/13
to isilon-u...@googlegroups.com
it was lower case, but I believe it was capitalized automagicallly since I cut and pasted it from your text and spellcheck got it. I appreciate the follow up to be sure I was aware of the wrong flag though :)
Reply all
Reply to author
Forward
0 new messages