{"id":932,"date":"2025-10-28T00:29:30","date_gmt":"2025-10-28T00:29:30","guid":{"rendered":"https:\/\/danielribes.com\/blog\/?p=932"},"modified":"2026-04-06T11:47:49","modified_gmt":"2026-04-06T11:47:49","slug":"cosas-con-el-shell","status":"publish","type":"post","link":"https:\/\/danielribes.com\/blog\/cosas-con-el-shell\/","title":{"rendered":"Cosas con el shell"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Para ver cu\u00e1l es el shell activo en una sesi\u00f3n de terminal:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>(1) $ echo $0<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Cu\u00e1l es el que tenemos configurado por defecto:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>(2) $ echo $SHELL<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Para ver todos los disponibles:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>(3) $ cat \/etc\/shells<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Para ver la versi\u00f3n:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>(4) $ bash --version<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>(5) $ zsh --version<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"564\" height=\"416\" src=\"https:\/\/danielribes.com\/blog\/wp-content\/uploads\/2025\/10\/coses-shell.png\" alt=\"screenshot ejemplos comandos shell comentados en el post\" class=\"wp-image-934\" srcset=\"https:\/\/danielribes.com\/blog\/wp-content\/uploads\/2025\/10\/coses-shell.png 564w, https:\/\/danielribes.com\/blog\/wp-content\/uploads\/2025\/10\/coses-shell-300x221.png 300w, https:\/\/danielribes.com\/blog\/wp-content\/uploads\/2025\/10\/coses-shell-407x300.png 407w\" sizes=\"auto, (max-width: 564px) 100vw, 564px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Para ver cu\u00e1l es el shell activo en una sesi\u00f3n de terminal: Cu\u00e1l es el que tenemos configurado por defecto: Para ver todos los disponibles: Para ver la versi\u00f3n:<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[114],"tags":[99],"class_list":["post-932","post","type-post","status-publish","format-standard","hentry","category-infraestructura","tag-sysadmin"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":8}},"_links":{"self":[{"href":"https:\/\/danielribes.com\/blog\/wp-json\/wp\/v2\/posts\/932","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/danielribes.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/danielribes.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/danielribes.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/danielribes.com\/blog\/wp-json\/wp\/v2\/comments?post=932"}],"version-history":[{"count":3,"href":"https:\/\/danielribes.com\/blog\/wp-json\/wp\/v2\/posts\/932\/revisions"}],"predecessor-version":[{"id":936,"href":"https:\/\/danielribes.com\/blog\/wp-json\/wp\/v2\/posts\/932\/revisions\/936"}],"wp:attachment":[{"href":"https:\/\/danielribes.com\/blog\/wp-json\/wp\/v2\/media?parent=932"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/danielribes.com\/blog\/wp-json\/wp\/v2\/categories?post=932"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/danielribes.com\/blog\/wp-json\/wp\/v2\/tags?post=932"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}