[Linux] Remove all email & Reset /var/log files

Delete all mails

$ mail
> d *
> q

 

Force to reset log files

  • not recommended
$ sudo su 
$ cd /var/log
$ > lastlog
$ > wtmp
$ > dpkg.log 
$ > kern.log
$ > syslog
$ > messages
$ exit