Delete Files Older Than x Days on Linux

Posted in IT StuffTagged

Command Syntax find /folder/files* -mtime +15 -exec rm {} \;find /folder/files* -mtime +15 -exec rm {} \; The first argument is the path to the files. This can be a path, a directory, or a wildcard as in the example above. The second argument, -mtime, is used to specify the number of days old that….

How to kill all processes with a given (partial) name?

Posted in IT StuffTagged ,

Usually I open more than on instance of tail -f to monitor my application, so, to kill all with one single command I can use this: ps -ef | grep tail | grep -v grep | awk ‘{print $2}’ | xargs kill -9ps -ef | grep tail | grep -v grep | awk ‘{print $2}’….

Linux: mow much RAM is used per program

Posted in IT StuffTagged , ,

The script is a very helpful to show how much RAM is used by single process. This script is written by Pádraig Brady, He can be contacted at P@draigBrady.com. The script itself follows: #!/usr/bin/env python   # Try to determine how much RAM is currently being used per program. # Note the per program, not….