Sometimes you may need to delete all files except one or some in Linux. Here is how to delete all files except one in Linux.
delete files
How to Delete Files Older Than X Days in Linux
Sometimes you may need to delete files older than 1 day, 7 days, 1 month, 6 months and even 1 year. Here is how to delete files older than X days in Linux.
Shell Script to Delete Files in Directory
Very often you need to delete files in a directory. Here is a shell script to delete files in a directory.