Search This Blog

Total Pageviews

Friday, 1 July 2011

Unix delete all the mail for the user

unix delete mail
solaris delete mail


on linux


$mail

then

d *

this will delete all the mail for the user

===============
On solaris
now it is Oracle solaris

ln-ora-01# uname
SunOS
ln-ora-01# uname -a
SunOS ln-ora-01 5.10 Generic_137111-07 sun4u sparc SUNW,Sun-Fire-880



ln-ora-01# mailx -N give any number like 1-10 mails
? d 1-10
? q
Held 282 messages in /var/mail//root
ln-ora-01# mailx -N
? d 1-282
? q
ln-ora-01# mail
No mail.

No comments:

Oracle DBA

anuj blog Archive