centos7 mail

For anyone wondering how to read these messages one by one, you can just use 'mail'

$ mail

Then type a message number from the list which you want to read.

 

To goto the next message you can type 'next', another useful command is 'delete'.

 

 

How to delete root user’s mailbox/inbox file in Linux or Unix

Simply type the following command at shell prompt to delete all root mail:
> /var/spool/mail/root
Verify it with the following command or cat command or ls command:
mail
cat /var/spool/mail/root
ls -l /var/spool/mail/root

posted @ 2019-01-28 12:47  emanlee  阅读(213)  评论(0编辑  收藏  举报