Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

ubuntu delete files older than 5 days

#this deletes all files in /path/to/directory/ older than 7 days
find /path/to/directory/ -type f -mtime +7 -execdir rm -- '{}' ;
Comment

PREVIOUS NEXT
Code Example
Shell :: serverless not using aws profile 
Shell :: remove trash linux 
Shell :: docker tag and push 
Shell :: set sublime text as git editor 
Shell :: install haskell stack 
Shell :: how to install xeyes on ubuntu 
Shell :: display branch name in terminal ubuntu 
Shell :: youtube dl download playlist by index 
Shell :: how to get out of git bash editor 
Shell :: sqlmap enumerate tables in databases 
Shell :: git revert commit 
Shell :: flutter android sdk file not found 
Shell :: add upstream in git 
Shell :: download bangla font ubuntu 
Shell :: get mac address linux 
Shell :: git remove cached directory 
Shell :: jq install bash 
Shell :: ubuntu install jdk 14 
Shell :: install vlc fedora 
Shell :: django load data 
Shell :: change date linux 
Shell :: docker alpine create user and group 
Shell :: red bash linux 
Shell :: upgrading ionic 5 
Shell :: how to upload laravel project on github using command 
Shell :: bash return every nth line 
Shell :: remove last commit git 
Shell :: A multi-stage Dockerfile for building nodejs 
Shell :: install code . path in mac 
Shell :: Sticky notes for Linux(Ubuntu) 
ADD CONTENT
Topic
Content
Source link
Name
4+5 =