Skip to content

Working with Files

Deleting Files Based on Modified Time#

find /path/to/files* -mtime +5 -exec rm {} \;

chmod 755 only directories#

find . -type d -exec chmod 755 {} \;

chmod 644 only files#

find . -type f -exec chmod 644 {} \;

Last update: July 13, 2022
Created: July 13, 2022