LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to find files in current directory only (not recursively) (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-find-files-in-current-directory-only-not-recursively-609330/)

babu198649 12-27-2007 01:19 AM

how to find files in current directory only (not recursively)
 
hi
how to find the files using find command in current directory only without searching recursively inside the directories.

btmiller 12-27-2007 01:23 AM

I think setting -maxdepth 1 should do it, if I understand your question correctly.

babu198649 12-27-2007 01:30 AM

thanks

it works but i dont understand the output when -maxdepth is set to zero

[bala@localhost ~]$ find -maxdepth 0
.


what does the . (current directory ) signify.i expect the output to be nothing.


All times are GMT -5. The time now is 04:30 PM.