ic computer scan and optimizer program is available free of charge.' name='description'/> Ethical Hacking:Ethical hacking tutorials: A script for cleaning up after programs that create autosave and backup files.(#30)
Mobile ads

Google Search engine

A script for cleaning up after programs that create autosave and backup files.(#30)

Posted by Unknown | Posted in , | Posted on 10:11 AM

A script for cleaning up after programs that create autosave and backup files.(#30)
Here is a simple two-liner which recursively descends a directory hierarchy removing emacs auto-save (#) and backup (~) files, .o files, and TeX .log files. It also compresses .tex files and README files. I call it 'squeeze' on my system.

#!/bin/sh
#SQUEEZE removes unnecessary files and compresses .tex and README files
#By Barry tolnas, tolnas@sun1.engr.utk.edu
#
echo squeezing $PWD
find $PWD \( -name \*~ -or -name \*.o -or -name \*.log -or -name \*\#\) -exec
rm -f {} \;
find $PWD \( -name \*.tex -or -name \*README\* -or -name \*readme\* \) -exec gzip -9 {} \;

How to find out what process is eating the most memory.(#31)
ps -aux | sort +4n

-OR-
ps -aux | sort +5n

Comments (0)

Post a Comment