{"id":2228,"date":"2023-07-08T08:31:25","date_gmt":"2023-07-08T08:31:25","guid":{"rendered":"https:\/\/myvlcsys.com\/?p=2228"},"modified":"2023-07-10T10:35:06","modified_gmt":"2023-07-10T10:35:06","slug":"linux-comando-history","status":"publish","type":"post","link":"https:\/\/myvlcsys.com\/?p=2228","title":{"rendered":"LINUX: Comando history."},"content":{"rendered":"\n<p>Con&nbsp;<strong>history<\/strong>, el sistema listar\u00e1 hasta 500 comandos ejecutados previamente, permiti\u00e9ndote reutilizarlos sin necesidad de volver a entrar. Ten en cuenta que s\u00f3lo los usuarios con privilegios&nbsp;<strong>sudo&nbsp;<\/strong>pueden ejecutar este comando. La ejecuci\u00f3n de esta utilidad tambi\u00e9n depende del shell de Linux que utilices.<\/p>\n\n\n\n<p>Para ejecutarlo, introduce el siguiente comando:<\/p>\n\n\n\n<p><strong>history [opci\u00f3n]<\/strong><\/p>\n\n\n\n<p>Este comando admite muchas opciones, como:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>-c&nbsp;<\/strong>borra toda la lista del historial.<\/li><li><strong>-d offset&nbsp;<\/strong>borra la entrada del historial en la posici\u00f3n&nbsp;<strong>OFFSET<\/strong>.<\/li><li><strong>-a&nbsp;<\/strong>a\u00f1ade l\u00edneas de historial.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"604\" height=\"461\" src=\"https:\/\/myvlcsys.com\/wp-content\/uploads\/2023\/07\/Comando-History.png\" alt=\"\" class=\"wp-image-2229\" srcset=\"https:\/\/myvlcsys.com\/wp-content\/uploads\/2023\/07\/Comando-History.png 604w, https:\/\/myvlcsys.com\/wp-content\/uploads\/2023\/07\/Comando-History-300x229.png 300w\" sizes=\"(max-width: 604px) 100vw, 604px\" \/><figcaption>Comando History<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Con&nbsp;history, el sistema listar\u00e1 hasta 500 comandos ejecutados previamente, permiti\u00e9ndote reutilizarlos sin necesidad de volver a entrar. Ten en cuenta que s\u00f3lo los usuarios con privilegios&nbsp;sudo&nbsp;pueden ejecutar este comando. La&hellip; <\/p>\n","protected":false},"author":4,"featured_media":2066,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[30,10,45],"tags":[31,26,25,47,27,24],"class_list":["post-2228","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-comandos","category-linux","category-pildoras","tag-comandos","tag-debian","tag-linux","tag-myvlcsys","tag-sistemas","tag-terminal"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/myvlcsys.com\/index.php?rest_route=\/wp\/v2\/posts\/2228","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/myvlcsys.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/myvlcsys.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/myvlcsys.com\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/myvlcsys.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2228"}],"version-history":[{"count":2,"href":"https:\/\/myvlcsys.com\/index.php?rest_route=\/wp\/v2\/posts\/2228\/revisions"}],"predecessor-version":[{"id":2231,"href":"https:\/\/myvlcsys.com\/index.php?rest_route=\/wp\/v2\/posts\/2228\/revisions\/2231"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/myvlcsys.com\/index.php?rest_route=\/wp\/v2\/media\/2066"}],"wp:attachment":[{"href":"https:\/\/myvlcsys.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2228"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/myvlcsys.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2228"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/myvlcsys.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2228"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}