Friday, January 18, 2013

How to find and delete files with certain extension under certain directories... Πως σβηνουμε αρχεια με συγκεκριμένη κατάληξη κάτω από συγκεκριμένους καταλόγους... in Linux

How to find and delete files with certain extension under certain directories...

Πως σβηνουμε αρχεια με συγκεκριμένη κατάληξη κάτω από συγκεκριμένους καταλόγους...

in Linux

find */temp/ -type f -name "*.zip" -exec rm -f {} \;

Finding biggest folders... Πως βρίσκουμε τους μεγαλύτερους φακέλους... in Linux

Another elegant solution to find the biggest folders in linux:

du -k --max-depth=1 | sort -n | cut -f2 | xargs -d '\n' du -sh