{"id":305,"date":"2019-01-17T09:51:16","date_gmt":"2019-01-17T09:51:16","guid":{"rendered":"https:\/\/jan.schnasse.org\/blog\/?p=305"},"modified":"2026-09-28T11:39:17","modified_gmt":"2026-09-28T09:39:17","slug":"unix-tools-introduced-today-yes","status":"publish","type":"post","link":"https:\/\/jan.schnasse.org\/blog\/2019\/01\/17\/unix-tools-introduced-today-yes\/","title":{"rendered":"Unix tools introduced. Today: yes"},"content":{"rendered":"<p>The unix tool <strong>yes <\/strong>provides one simple yet very useful functionality. It repeatedly\u00a0 prints &#8218;yes&#8216; (or any other string) to the console.<\/p>\n<p>This can be used to automatically answer questions in scripted environments.<\/p>\n<p>Example:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">yes|sudo rpm -ivh mysql-community-release-el7-5.noarch.rpm<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The unix tool yes provides one simple yet very useful functionality. It repeatedly\u00a0 prints &#8218;yes&#8216; (or any other string) to the console. This can be used to automatically answer questions in scripted environments. Example: yes|sudo rpm -ivh mysql-community-release-el7-5.noarch.rpm &nbsp;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,17],"tags":[],"class_list":["post-305","post","type-post","status-publish","format-standard","hentry","category-admin","category-unixtools"],"_links":{"self":[{"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/posts\/305","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/comments?post=305"}],"version-history":[{"count":1,"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/posts\/305\/revisions"}],"predecessor-version":[{"id":4402,"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/posts\/305\/revisions\/4402"}],"wp:attachment":[{"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/media?parent=305"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/categories?post=305"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/tags?post=305"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}