Delete all root mail using shell
The easiest way is to empty root or a users email message file i.e. /var/spool/mail/root or /var/spool/mail/username is to simply type the following command at shell: cat /dev/null > /var/spool/mail/root
The easiest way is to empty root or a users email message file i.e. /var/spool/mail/root or /var/spool/mail/username is to simply type the following command at shell: cat /dev/null > /var/spool/mail/root
Use the following syntax to set new data and time: # date set="STRING" For example, set new data to 2 Oct 2006 18:00:00, type the following command as root user: # date -s "2 OCT 2006 18:00:00" OR # date set="2 OCT 2006 18:00:00" You can also simplify format using following syntax: # date +%Y%m%d [...]