1

I administrate a multi-user system that has had quite a lot of user turnover. The users who have left us still have a folder in the folder /home. I would like to remove the folders for the users that are no longer with us, but I don't want to have to sort through each and every folder and remove them one by one using '-rm'.

Is there a command to remove folders that have not been accessed in a certain amount of time?

Thanks!

0

1 Answer 1

1

find /home/user -type f -mtime +108 -exec rm {} \;

where for example, 108 taken as a number of days, so change it to whatever you need.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .