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
Post a Comment