Security and Technology Ramblings…

Sorry, just using the blog as my brain again…

Method to search for files based on a certain size…


find . -type f -size +50M -exec ls -lu {} \;

Method to delete files older than 30 days in a directory…


find . -mtime +30 -type f -exec \rm {} \;

Method to cp or move files after finding them…


find <source directory> -name '*.jpg' -exec cp '{}' <destination directory> \;&

Leave a Reply