Solution: You have new mail in/var/spool/mail/root

Source: Internet
Author: User

Solution: You have new mail in/var/spool/mail/root

Run:
Echo "unset MAILCHECK">/etc/profile
Source/etc/profile

View
Ls-lth/var/spool/mail/

Clear:
Cat/dev/null>/var/spool/mail/root

The following is my process

[Root @ dir ~] # Echo "unset MAILCHECK">/etc/profile

You have new mail in/var/spool/mail/root

[Root @ dir ~] # Source/etc/profile

[Root @ dir ~] # Ls-lth/var/spool/mail/

Total usage 29 M

-Rw -------. 1 root mail 29 M December 1 09:14 root

-Rw ----. 1 nagios mail 3.5 K October 9 01:07 nagios

-Rw ----. 1 zabbix mail 0 July 16 02:13 zabbix

-Rw ----. 1 caimz mail 0 July 6 20:36 caimz

-Rw ----. 1 wuhao mail 0 July 6 19:35 wuhao

-Rw ----. 1 wuhao mail 0 July 6 19:34 wh

-Rw ----. 1 php-fpm mail 0 June 25 01:24 php-fpm

-Rw ----. 1 virftp mail 0 June 17 19:06 virftp

-Rw ----. 1 liukm mail 0 June 8 18:03 liukm

-Rwxrwxrwx. 1 root 208 2015 test_myfuncs

-Rwxrwxrwx. 1 root 80 August May 29 2015 myfuncs

-Rw ----. 1 linuxsir mail 0 April 29 2015 linuxsir

-Rw ----. 1 sir04 mail 0 April 29 2015 sir04

-Rw ----. 1 sir03 mail 0 April 29 2015 sir03

-Rw ----. 1 sir02 mail 0 April 29 2015 sir02

-Rw ----. 1 sir01 mail 0 April 29 2015 sir01

-Rw ----. 1 user1 mail 0 April 2 2015 user1

-Rw ----. 1 chenhz mail 0 March 31 2015 chenhz

-Rw ----. 1 hzp mail 0 March 31 2015 hzp

-Rw ----. 1 www mail 0 March 31 2015 www

-Rw ----. 1 506 mail 0 March 26 2015 cy

-Rw ----. 1 lrq mail 0 March 26 2015 lrq

-Rw ----. 1 smb2 mail 0 March 26 2015 smb2

-Rw ----. 1 chenle mail 0 August March 26 2015 chenle

-Rw ----. 1 leco mail 0 March 24 2015 leco

-Rw ----. 1 rpc mail 0 March 24 2015 rpc

[Root @ dir ~] # Cat/dev/null>/var/spool/mail/root

[Root @ dir ~] #

Connection closed.

Disconnected from remote host (PC_Company) at 09:15:17.

Type 'help' to learn how to use Xshell prompt.

[C: \ ~] $

Connecting to 192.168.0.186: 22...

Connection established.

To escape to local shell, press 'ctrl + Alt +] '.

Last login: Tue Dec 1 09:14:33 2015 from 192.168.0.138

[Root @ dir ~] # Ls

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.