Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Shell/Bash
delete logs older than 7 days linux
Paige OWENS-SC
Programming language:
Shell/Bash
2021-06-17 13:10:27
0
Q:
delete logs older than 7 days linux
zebralamy
Code:
Shell/Bash
2021-03-17 09:18:30
find /media/bkfolder/ -mtime +7 -name'*.gz' -exec rm {} \;
0
Tags
linux
log
day
Related
linux find after date
delete first two lines of file linux
find files created in last 20 days
check start date of process id linux
find all files edited after date linux
django flush sessions on server startup
remove last field using awk
linux process holding deleted file
how to check date is older than x days in shell script
powershell delete files older than 15 days
New to Communities?
Join the community