{"id":1701,"date":"2020-04-30T20:15:01","date_gmt":"2020-05-01T01:15:01","guid":{"rendered":"http:\/\/zitstif.no-ip.org\/?p=1701"},"modified":"2020-04-30T20:20:03","modified_gmt":"2020-05-01T01:20:03","slug":"command-not-found-com-script","status":"publish","type":"post","link":"http:\/\/zitstif.no-ip.org\/?p=1701","title":{"rendered":"command-not-found.com script"},"content":{"rendered":"<p>I&#8217;m a big fan of command-not-found.com and decided to write a simple script that can be used from the command line:<\/p>\n<p><em>command:<\/em><\/p>\n<p><strong>cnf whois\u00a0<\/strong><\/p>\n<p><em>results:<\/em><\/p>\n<p><em><strong>Command-not-found.com results:<br \/>\n<\/strong><\/em><em><strong>Install<\/strong><\/em><\/p>\n<p><em><strong>All systems<\/strong><\/em><br \/>\n<em><strong>curl cmd.cat\/whois.sh<\/strong><\/em><\/p>\n<p><em><strong>Debian<\/strong><\/em><br \/>\n<em><strong>apt-get install whois<\/strong><\/em><\/p>\n<p><em><strong>Ubuntu<\/strong><\/em><br \/>\n<em><strong>apt-get install whois<\/strong><\/em><\/p>\n<p><em><strong>[alpine.png] Alpine<\/strong><\/em><br \/>\n<em><strong>apk add whois<\/strong><\/em><\/p>\n<p><em><strong>Arch Linux<\/strong><\/em><br \/>\n<em><strong>pacman -S whois<\/strong><\/em><\/p>\n<p><em><strong>image\/svg+xml Kali Linux<\/strong><\/em><br \/>\n<em><strong>apt-get install whois<\/strong><\/em><\/p>\n<p><em><strong>CentOS<\/strong><\/em><br \/>\n<em><strong>yum install whois<\/strong><\/em><\/p>\n<p><em><strong>Fedora<\/strong><\/em><br \/>\n<em><strong>dnf install whois<\/strong><\/em><\/p>\n<p><em><strong>OS X<\/strong><\/em><br \/>\n<em><strong>brew install whois<\/strong><\/em><\/p>\n<p><em><strong>Raspbian<\/strong><\/em><br \/>\n<em><strong>apt-get install whois<\/strong><\/em><\/p>\n<p><em><strong>Docker<\/strong><\/em><br \/>\n<em><strong>docker run cmd.cat\/whois whois powered by [8]Commando<\/strong><\/em><\/p>\n<p>The script is available here:<\/p>\n<p><a href=\"http:\/\/zitstif.com\/cnf.txt\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/zitstif.com\/cnf.txt<\/a><\/p>\n<p>It&#8217;s a quick and dirty script but it gets the job done.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m a big fan of command-not-found.com and decided to write a simple script that can be used from the command line: command: cnf whois\u00a0 results: Command-not-found.com results: Install All systems curl cmd.cat\/whois.sh Debian apt-get install whois Ubuntu apt-get install whois [alpine.png] Alpine apk add whois Arch Linux pacman -S whois image\/svg+xml Kali Linux apt-get install &hellip; <a href=\"http:\/\/zitstif.no-ip.org\/?p=1701\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">command-not-found.com script<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,3],"tags":[1063,1059,914,1061,1060,534,1062],"class_list":["post-1701","post","type-post","status-publish","format-standard","hentry","category-code","category-posts","tag-brew","tag-cnf","tag-command","tag-command-not-found-com","tag-lynx","tag-sed","tag-whois"],"_links":{"self":[{"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=\/wp\/v2\/posts\/1701","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1701"}],"version-history":[{"count":4,"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=\/wp\/v2\/posts\/1701\/revisions"}],"predecessor-version":[{"id":1705,"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=\/wp\/v2\/posts\/1701\/revisions\/1705"}],"wp:attachment":[{"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1701"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1701"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1701"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}