Blue Flower

Lunedì, 19 Novembre 2018 07:21

Ubuntu: cancellare file in modo ricorsivo

Written by
Rate this item
(0 votes)

sudo find . -name '*.png' -delete   o   sudo find . -name "*.bak" -type f -delete

But use it with precaution. Run first:

sudo find . -name "*.bak" -type f

to see exactly which files you will remove.

Also, make sure that -delete is the last argument in your command. If you put it before the -name *.bak argument, it will delete everything.

rm -r *.bak elimina anche le cartelle che terminano in .bak con tutto il loro contenuto

Read 126 times Last modified on Lunedì, 19 Novembre 2018 07:26

Leave a comment

Make sure you enter all the required information, indicated by an asterisk (*). HTML code is not allowed.