centos - Find files modified within 24 hours linux server -


i need find files modified last 24 hours without subfolders. having command

find /var/www/html/test/ -mtime -1 -type f -exec ls -l {} \; 

this show modified file within folder , subfolder. need particular folder modified in last 24 hours.

so please , tell me command show modified in parent folder.

just add -maxdepth 1

find . -maxdepth 1 -mtime -1 -type f -exec ls -l {} \; 

Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -