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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -