{"id":638,"date":"2025-07-06T23:01:09","date_gmt":"2025-07-06T22:01:09","guid":{"rendered":"http:\/\/aldarias.es\/wordpress\/?p=638"},"modified":"2025-07-08T08:52:51","modified_gmt":"2025-07-08T07:52:51","slug":"cambiar-el-promp-de-la-terminal-en-linux","status":"publish","type":"post","link":"http:\/\/aldarias.es\/wordpress\/cambiar-el-promp-de-la-terminal-en-linux\/","title":{"rendered":"Ver la temperatura en el promp de la terminal en linux"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Editaremos el fichero .bashrc del home del usurio y pondremos:<\/p>\n\n\n\n<p>function temp(){<br>sensors | grep \u00a0&#8216;Package&#8217; | cut -d &#8216;  &#8216; -f5<br>}<br><\/p>\n\n\n\n<p>PS1=&#8217;\\u@\\h-$(show_temp) # &#8216;<\/p>\n\n\n\n<p>Quedar\u00e1:<\/p>\n\n\n\n<p>sensors<br>acpitz-acpi-0<br>Adapter: ACPI interface<br>temp1: +27.8\u00b0C<br>temp2: +29.8\u00b0C<\/p>\n\n\n\n<p>coretemp-isa-0000<br>Adapter: ISA adapter<br>Package id 0: +58.0\u00b0C (high = +84.0\u00b0C, crit = +100.0\u00b0C)<br>Core 0: +47.0\u00b0C (high = +84.0\u00b0C, crit = +100.0\u00b0C)<br>Core 1: +48.0\u00b0C (high = +84.0\u00b0C, crit = +100.0\u00b0C)<\/p>\n\n\n\n<p>root@pve-58.0 #<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Editaremos el fichero .bashrc del home del usurio y pondremos: function temp(){sensors | grep \u00a0&#8216;Package&#8217; | cut -d &#8216; &#8216; -f5} PS1=&#8217;\\u@\\h-$(show_temp) # &#8216; Quedar\u00e1: sensorsacpitz-acpi-0Adapter: ACPI interfacetemp1: +27.8\u00b0Ctemp2: +29.8\u00b0C coretemp-isa-0000Adapter: ISA adapterPackage id 0: +58.0\u00b0C (high = +84.0\u00b0C, crit &hellip; <a href=\"http:\/\/aldarias.es\/wordpress\/cambiar-el-promp-de-la-terminal-en-linux\/\">Sigue leyendo <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":[1],"tags":[],"class_list":["post-638","post","type-post","status-publish","format-standard","hentry","category-sin-categoria"],"_links":{"self":[{"href":"http:\/\/aldarias.es\/wordpress\/wp-json\/wp\/v2\/posts\/638","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/aldarias.es\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/aldarias.es\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/aldarias.es\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/aldarias.es\/wordpress\/wp-json\/wp\/v2\/comments?post=638"}],"version-history":[{"count":7,"href":"http:\/\/aldarias.es\/wordpress\/wp-json\/wp\/v2\/posts\/638\/revisions"}],"predecessor-version":[{"id":648,"href":"http:\/\/aldarias.es\/wordpress\/wp-json\/wp\/v2\/posts\/638\/revisions\/648"}],"wp:attachment":[{"href":"http:\/\/aldarias.es\/wordpress\/wp-json\/wp\/v2\/media?parent=638"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/aldarias.es\/wordpress\/wp-json\/wp\/v2\/categories?post=638"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/aldarias.es\/wordpress\/wp-json\/wp\/v2\/tags?post=638"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}