欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

bash: mail: command not found的解决方法

shiping1 的头像

近日,安装了一个最小化的centos 6.2 64bit,系统中显示有root用户的mail,想用mail命令查看相关信件,
但发现一个问题:
-bash: mail: command not found
呵呵,显然mailx没有安装,于是:
yum -y install mailx

然后whois命令也没有

yum -y install jwhois

来自 http://hxl2009.blog.51cto.com/779549/884569

 




mail command not found

Whenever any message says while hitting the command as Command Not Found , it means the package is not installed or script is not present.
For the mail command not found issue install the mailx.
Use the below given command for mailx installation.

For Redhat/CentOS =>

yum install mailx

For Debian or Ubuntu =>

sudo apt-get install mailutils

来自 http://blog.csdn.net/cheng_fangang/article/details/9493585

普通分类: