Sendmail Linux Examples

Sendmail on the command line: $ sendmail emailaddress write body of message CTRL-D The CTRL-D is a end of message code for standard-in. Example : From: To: enter body of message   This message is missing a useful TO:line as well as a subject. To create these you… Read More »Sendmail Linux Examples

Delete / remove old / order files in linux automatically

Code: find /tmp/test -ctime +60 -delete The above command  will delete any files created over 60 days ago in the /tmp/test  folder (and all subfolders). You can add this to a cron job and it will be automatic daily, weekly, monthly