how to delete the files that created on Aug 7
with the name DBG_A_sql*
under /tmp
as the following example:
-rw-r--r-- 1 root root 51091 Aug 7 11:22 DBG_A_sql.2135
-rw-r--r-- 1 root root 15283 Aug 7 11:22 DBG_A_sql.2373
-rw-r--r-- 1 root root 51091 Aug 7 11:22 DBG_A_sql.2278
-rw-r--r-- 1 root root 9103 Aug 7 11:22 DBG_A_sql.2485
-rw-r--r-- 1 root root 9116 Aug 7 11:22 DBG_A_sql.2573
-rw-r--r-- 1 root root 9140 Aug 7 11:22 DBG_A_sql.2679
-rw-r--r-- 1 root root 15695 Aug 7 11:22 DBG_A_sql.2897
You can use find
. Calculate date according to your requirement and use,
find /tmp -maxdepth 1 -mtime -1 -type f -name "DBG_A_sql*" -print
After confirming it delete them,
find /tmp -maxdepth 1 -mtime -1 -type f -name "DBG_A_sql*" -delete
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments