{"id":8193,"date":"2019-08-16T12:32:03","date_gmt":"2019-08-16T12:32:03","guid":{"rendered":"https:\/\/www.milesweb.in\/hosting-faqs\/?p=8193"},"modified":"2019-08-29T12:38:28","modified_gmt":"2019-08-29T12:38:28","slug":"bash-mail-command-not-found-ubuntu-debian-centos-redhat","status":"publish","type":"post","link":"https:\/\/www.milesweb.in\/hosting-faqs\/bash-mail-command-not-found-ubuntu-debian-centos-redhat\/","title":{"rendered":"Ubuntu\/Debian Bash: Mail: command not found (CentOS, Redhat)"},"content":{"rendered":"<p style=\"text-align: justify;\">You are unable to see most of the commands in your system with the minimal installation of any Linux distro. Only the necessary packages are installed for running an operating system and skipped unnecessary packages. The <strong>mail <\/strong>command is used in most of the Linux distribution for sending emails from the command line. You may get the error such as &#8216;The program <strong>mail<\/strong> is currently not installed.&#8217; in most of the Debian based systems.<\/p>\n<h2>Install mail Command:<\/h2>\n<p style=\"text-align: justify;\">Let&#8217;s use one of the following commands to install the <strong>mail <\/strong>command according to your operating system. For RHEL based OS, this command installed from <strong>mailx<\/strong> rpm packages.<\/p>\n<h4><strong>Install mail command on CentOS\/Redhat 7\/6\/5:<\/strong><\/h4>\n<div style=\"background: #f2f2f2; padding: 15px;\">\n<div>yum install mailx<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<h4><strong>Install mail command on Fedora 22+:<\/strong><\/h4>\n<div style=\"background: #f2f2f2; padding: 15px;\">\n<div>dnf install mailx<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<h4><strong>Install mail command on Ubuntu\/Debian\/LinuxMint:<\/strong><\/h4>\n<p>On Debian based operating system this command found in <strong>mailutils<\/strong> package.<\/p>\n<div style=\"background: #f2f2f2; padding: 15px;\">\n<div>sudo apt-get install mailutils<\/div>\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 style=\"background: #f2f2f2; padding: 15px;\">\n<div>echo &#8220;Hello World&#8221; | mail -s &#8220;Message Subject&#8221; receiver@example.com<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>You are unable to see most of the commands in your system with the minimal installation of any Linux distro. Only the necessary packages are installed for running an operating system and skipped unnecessary packages. The mail command is used in most of the Linux distribution for sending emails from the command line. You may [&hellip;]<\/p>\n","protected":false},"author":19,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[41,4],"tags":[998],"class_list":["post-8193","post","type-post","status-publish","format-standard","placeholder-for-hentry","category-howtos","category-web-hosting-faq","tag-mail-command-not-found"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Ubuntu\/Debian Bash: Mail: command not found (CentOS, Redhat)<\/title>\n<meta name=\"description\" content=\"In this post you will learn how to resolve -bash: mail: Command Not Found Error in Linux, RedHat, CentOS, Debian, Ubuntu.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.milesweb.in\/hosting-faqs\/bash-mail-command-not-found-ubuntu-debian-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)\" \/>\n<meta property=\"og:description\" content=\"In this post you will learn how to resolve -bash: mail: Command Not Found Error in Linux, RedHat, CentOS, Debian, Ubuntu.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.milesweb.in\/hosting-faqs\/bash-mail-command-not-found-ubuntu-debian-centos-redhat\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"article:published_time\" content=\"2019-08-16T12:32:03+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-08-29T12:38:28+00:00\" \/>\n<meta name=\"author\" content=\"Ajit\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ajit\" \/>\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\":\"Article\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/bash-mail-command-not-found-ubuntu-debian-centos-redhat\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/bash-mail-command-not-found-ubuntu-debian-centos-redhat\/\"},\"author\":{\"name\":\"Ajit\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/7cd39cafedd7652b49b849e5e331cd48\"},\"headline\":\"Ubuntu\/Debian Bash: Mail: command not found (CentOS, Redhat)\",\"datePublished\":\"2019-08-16T12:32:03+00:00\",\"dateModified\":\"2019-08-29T12:38:28+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/bash-mail-command-not-found-ubuntu-debian-centos-redhat\/\"},\"wordCount\":186,\"commentCount\":0,\"keywords\":[\"Mail: Command Not Found\"],\"articleSection\":[\"How-Tos\",\"Web Hosting FAQ\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.milesweb.in\/hosting-faqs\/bash-mail-command-not-found-ubuntu-debian-centos-redhat\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/bash-mail-command-not-found-ubuntu-debian-centos-redhat\/\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/bash-mail-command-not-found-ubuntu-debian-centos-redhat\/\",\"name\":\"Ubuntu\/Debian Bash: Mail: command not found (CentOS, Redhat)\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#website\"},\"datePublished\":\"2019-08-16T12:32:03+00:00\",\"dateModified\":\"2019-08-29T12:38:28+00:00\",\"author\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/7cd39cafedd7652b49b849e5e331cd48\"},\"description\":\"In this post you will learn how to resolve -bash: mail: Command Not Found Error in Linux, RedHat, CentOS, Debian, Ubuntu.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/bash-mail-command-not-found-ubuntu-debian-centos-redhat\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.milesweb.in\/hosting-faqs\/bash-mail-command-not-found-ubuntu-debian-centos-redhat\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/bash-mail-command-not-found-ubuntu-debian-centos-redhat\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.milesweb.in\/hosting-faqs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Ubuntu\/Debian Bash: Mail: command not found (CentOS, Redhat)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#website\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/\",\"name\":\"Web Hosting FAQs by MilesWeb\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.milesweb.in\/hosting-faqs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/7cd39cafedd7652b49b849e5e331cd48\",\"name\":\"Ajit\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6d48014b3dcf0691486425b0f8443591d31e1e2f623206cd11a25fdffa417819?s=96&d=blank&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6d48014b3dcf0691486425b0f8443591d31e1e2f623206cd11a25fdffa417819?s=96&d=blank&r=g\",\"caption\":\"Ajit\"},\"description\":\"With over 8+ years of experience in the digital marketing industry, I have achieved extensive exposure to result-oriented methodologies. And expertise in different domains like Datacentre Services, Cloud computing technology, Web hosting industry and many more.\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/author\/ajit\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Ubuntu\/Debian Bash: Mail: command not found (CentOS, Redhat)","description":"In this post you will learn how to resolve -bash: mail: Command Not Found Error in Linux, RedHat, CentOS, Debian, Ubuntu.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.milesweb.in\/hosting-faqs\/bash-mail-command-not-found-ubuntu-debian-centos-redhat\/","og_locale":"en_US","og_type":"article","og_title":"Ubuntu\/Debian Bash: Mail: command not found (CentOS, Redhat)","og_description":"In this post you will learn how to resolve -bash: mail: Command Not Found Error in Linux, RedHat, CentOS, Debian, Ubuntu.","og_url":"https:\/\/www.milesweb.in\/hosting-faqs\/bash-mail-command-not-found-ubuntu-debian-centos-redhat\/","og_site_name":"Web Hosting FAQs by MilesWeb","article_published_time":"2019-08-16T12:32:03+00:00","article_modified_time":"2019-08-29T12:38:28+00:00","author":"Ajit","twitter_misc":{"Written by":"Ajit","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/bash-mail-command-not-found-ubuntu-debian-centos-redhat\/#article","isPartOf":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/bash-mail-command-not-found-ubuntu-debian-centos-redhat\/"},"author":{"name":"Ajit","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/7cd39cafedd7652b49b849e5e331cd48"},"headline":"Ubuntu\/Debian Bash: Mail: command not found (CentOS, Redhat)","datePublished":"2019-08-16T12:32:03+00:00","dateModified":"2019-08-29T12:38:28+00:00","mainEntityOfPage":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/bash-mail-command-not-found-ubuntu-debian-centos-redhat\/"},"wordCount":186,"commentCount":0,"keywords":["Mail: Command Not Found"],"articleSection":["How-Tos","Web Hosting FAQ"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.milesweb.in\/hosting-faqs\/bash-mail-command-not-found-ubuntu-debian-centos-redhat\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/bash-mail-command-not-found-ubuntu-debian-centos-redhat\/","url":"https:\/\/www.milesweb.in\/hosting-faqs\/bash-mail-command-not-found-ubuntu-debian-centos-redhat\/","name":"Ubuntu\/Debian Bash: Mail: command not found (CentOS, Redhat)","isPartOf":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#website"},"datePublished":"2019-08-16T12:32:03+00:00","dateModified":"2019-08-29T12:38:28+00:00","author":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/7cd39cafedd7652b49b849e5e331cd48"},"description":"In this post you will learn how to resolve -bash: mail: Command Not Found Error in Linux, RedHat, CentOS, Debian, Ubuntu.","breadcrumb":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/bash-mail-command-not-found-ubuntu-debian-centos-redhat\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.in\/hosting-faqs\/bash-mail-command-not-found-ubuntu-debian-centos-redhat\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/bash-mail-command-not-found-ubuntu-debian-centos-redhat\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.in\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"Ubuntu\/Debian Bash: Mail: command not found (CentOS, Redhat)"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#website","url":"https:\/\/www.milesweb.in\/hosting-faqs\/","name":"Web Hosting FAQs by MilesWeb","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.in\/hosting-faqs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/7cd39cafedd7652b49b849e5e331cd48","name":"Ajit","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6d48014b3dcf0691486425b0f8443591d31e1e2f623206cd11a25fdffa417819?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6d48014b3dcf0691486425b0f8443591d31e1e2f623206cd11a25fdffa417819?s=96&d=blank&r=g","caption":"Ajit"},"description":"With over 8+ years of experience in the digital marketing industry, I have achieved extensive exposure to result-oriented methodologies. And expertise in different domains like Datacentre Services, Cloud computing technology, Web hosting industry and many more.","url":"https:\/\/www.milesweb.in\/hosting-faqs\/author\/ajit\/"}]}},"_links":{"self":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/8193","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=8193"}],"version-history":[{"count":1,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/8193\/revisions"}],"predecessor-version":[{"id":8194,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/8193\/revisions\/8194"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=8193"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=8193"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=8193"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}