Fgoptionaluselessfilesbin Hot -

Installation

[Top]  [Previous]  [Next]

Fgoptionaluselessfilesbin Hot -

Make it executable:

Example: ls is in /bin . Deleting it makes even fg impossible. fgoptionaluselessfilesbin hot

#!/bin/bash echo "Scanning for optional, useless, hot files..." find /tmp -type f -size +50M -atime +1 -exec rm -vi {} ; Useless core dumps find /home -name "core.*" -type f -exec rm -vi {} ; Optional cache >500MB du -sk ~/.cache/* | awk '$1 > 500000 print $2' | xargs rm -rfv Orphaned .bin in user's personal bin if [ -d ~/bin ]; then find ~/bin -type f -perm -001 -atime +30 -exec echo "Consider removing: {}" ; fi Make it executable: Example: ls is in /bin

echo "Hot useless optional cleanup complete." What seems “optional” to you may be critical

chmod -x ~/bin/old_tool && mv ~/bin/old_tool ~/bin/old_tool.disabled Never blindly delete from /bin , /sbin , /lib , /etc . What seems “optional” to you may be critical.

Check with: