LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   About the "find" comand (https://www.linuxquestions.org/questions/linux-general-1/about-the-find-comand-275990/)

ust 01-10-2005 03:23 AM

About the "find" comand
 
I want to use the below "find" command to search the files, this statement will search all the files under /tmp includes subdirecties , how to make it only the files under /tmp but exclude its subdirecties ? thx


find /tmp -mtime +10 -exec ls -lt {} \;

Dark_Helmet 01-10-2005 04:33 AM

find /tmp -maxdepth 1 -mtime +10 -exec ls -lt {} \;


All times are GMT -5. The time now is 02:11 PM.