需要配合find和rm兩個命令完成
顯示20分鍾前的文件:
find /home/prestat/bills/test -type f -mmin +20 -exec ls -l {} \;
刪除20分鍾前的文件:
find /home/prestat/bills/test -type f -mmin +20 -exec rm {} \;
具體操作需要掌握find命令的各種參數
https://www.cnblogs.com/wanqieddy/archive/2011/06/09/2076785.html