Under linux ubuntu, delete the subdirectory 10 days ago in the current directory
伊谢尔伦2017-06-17 09:16:43
0
2
1161
Be careful not to delete the files in the current directory. Delete the subdirectory and the files in the subdirectory. Only delete those from 10 days ago. Thank you, Daniel!
Like this (make sure to confirm before deleting):
find -maxdepth 1 -type d -mtime +10 -delete