{"id":3248,"date":"2021-12-23T04:24:07","date_gmt":"2021-12-23T04:24:07","guid":{"rendered":"https:\/\/ownwebservers.com\/kb\/?p=3248"},"modified":"2021-12-23T11:54:14","modified_gmt":"2021-12-23T11:54:14","slug":"ubuntu-debian-bash-mail-command-not-found-centos-redhat","status":"publish","type":"post","link":"https:\/\/ownwebservers.com\/kb\/ubuntu-debian-bash-mail-command-not-found-centos-redhat\/","title":{"rendered":"Ubuntu\/Debian Bash: Mail: command not found (CentOS, Redhat)"},"content":{"rendered":"<p>You are unable to see most of the commands in your system with the nominal installation of any Linux distro. Then only the mandatory packages are install for running an OS and skipped unnecessary packages. The mail command is used in most of the Linux operating system distribution for sending emails from the command line. You&#8217;ll get the error like \u2018The program mail is currently not installed.\u2019 in most of the Debian based systems.<\/p>\n<h2>Install mail Command:<\/h2>\n<p>Let\u2019s use one of the commands as follow to install the mail command according to your OS. For RHEL based mostly OS, this command installed from mailx rpm packages.<\/p>\n<div class=\"kb-article-content\">\n<h4><strong>Install mail command on CentOS\/Redhat 7\/6\/5:<\/strong><\/h4>\n<div>\n<div><\/div>\n<blockquote>\n<div>yum install mailx<\/div>\n<\/blockquote>\n<\/div>\n<h4><\/h4>\n<h4><strong>Install mail command on Fedora 22+:<\/strong><\/h4>\n<blockquote><p>&nbsp;<\/p>\n<p>dnf install mailx<\/p><\/blockquote>\n<h4><\/h4>\n<h4><strong>Install mail command on Ubuntu\/Debian\/LinuxMint:<\/strong><\/h4>\n<p>On Debian based operating system this command found in\u00a0<strong>mailutils<\/strong>\u00a0package.<\/p>\n<div>\n<blockquote>\n<div>sudo apt-get install mailutils<\/div>\n<\/blockquote>\n<\/div>\n<p>&nbsp;<\/p>\n<h2>Sending Test Email<\/h2>\n<p>Send a test email using the following command after installing mail command packages in your system.<\/p>\n<div>\n<blockquote>\n<div>echo \u201cHello World\u201d | mail -s \u201cMessage Subject\u201d receiver@example.com<\/div>\n<\/blockquote>\n<\/div>\n<\/div>\n<div class=\"kb-aubox-mncntnr\">\n<div class=\"kb-aubox-col kb-aubox-col-avatar\"><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>You are unable to see most of the commands in your system with the nominal installation of any Linux distro. Then only the mandatory packages are install for running an OS and skipped unnecessary packages. The mail command is used in most of the Linux operating system distribution for sending emails from the command line. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-3248","post","type-post","status-publish","format-standard","hentry","category-web-hosting"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v15.2.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Ubuntu\/Debian Bash: Mail: command not found (CentOS, Redhat) - OWS KB<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ownwebservers.com\/kb\/ubuntu-debian-bash-mail-command-not-found-centos-redhat\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Ubuntu\/Debian Bash: Mail: command not found (CentOS, Redhat) - OWS KB\" \/>\n<meta property=\"og:description\" content=\"You are unable to see most of the commands in your system with the nominal installation of any Linux distro. Then only the mandatory packages are install for running an OS and skipped unnecessary packages. The mail command is used in most of the Linux operating system distribution for sending emails from the command line. [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ownwebservers.com\/kb\/ubuntu-debian-bash-mail-command-not-found-centos-redhat\/\" \/>\n<meta property=\"og:site_name\" content=\"OWS KB\" \/>\n<meta property=\"article:published_time\" content=\"2021-12-23T04:24:07+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-12-23T11:54:14+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\">\n\t<meta name=\"twitter:data1\" content=\"admin\">\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\">\n\t<meta name=\"twitter:data2\" content=\"1 minute\">\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/#website\",\"url\":\"https:\/\/ownwebservers.com\/kb\/\",\"name\":\"OWS KB\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/ownwebservers.com\/kb\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/ubuntu-debian-bash-mail-command-not-found-centos-redhat\/#webpage\",\"url\":\"https:\/\/ownwebservers.com\/kb\/ubuntu-debian-bash-mail-command-not-found-centos-redhat\/\",\"name\":\"Ubuntu\/Debian Bash: Mail: command not found (CentOS, Redhat) - OWS KB\",\"isPartOf\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/#website\"},\"datePublished\":\"2021-12-23T04:24:07+00:00\",\"dateModified\":\"2021-12-23T11:54:14+00:00\",\"author\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/#\/schema\/person\/4a40fe3fe17a08ddd1d7c113668e75f2\"},\"breadcrumb\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/ubuntu-debian-bash-mail-command-not-found-centos-redhat\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ownwebservers.com\/kb\/ubuntu-debian-bash-mail-command-not-found-centos-redhat\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/ubuntu-debian-bash-mail-command-not-found-centos-redhat\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/\",\"url\":\"https:\/\/ownwebservers.com\/kb\/\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/ubuntu-debian-bash-mail-command-not-found-centos-redhat\/\",\"url\":\"https:\/\/ownwebservers.com\/kb\/ubuntu-debian-bash-mail-command-not-found-centos-redhat\/\",\"name\":\"Ubuntu\/Debian Bash: Mail: command not found (CentOS, Redhat)\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/#\/schema\/person\/4a40fe3fe17a08ddd1d7c113668e75f2\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ba5db5841d48bd7517bb2583e13983e6d2fa56a4099a0b3c61ad2daefc321303?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"https:\/\/ownwebservers.com\/kb\"]}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","_links":{"self":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/3248","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/comments?post=3248"}],"version-history":[{"count":1,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/3248\/revisions"}],"predecessor-version":[{"id":3249,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/3248\/revisions\/3249"}],"wp:attachment":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/media?parent=3248"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/categories?post=3248"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/tags?post=3248"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}