{"id":465,"date":"2010-05-02T20:46:49","date_gmt":"2010-05-03T01:46:49","guid":{"rendered":"http:\/\/angelsalvadorweb.com\/blogs\/?p=465"},"modified":"2010-05-02T20:46:49","modified_gmt":"2010-05-03T01:46:49","slug":"para-los-amantes-del-twitter-desde-linux","status":"publish","type":"post","link":"https:\/\/angelsalvadorweb.com\/mx\/?p=465","title":{"rendered":"Para los Amantes del TWITTER desde LINUX"},"content":{"rendered":"<h2 style=\"text-align: center;\"><span style=\"color: #000080;\">Twitter  desde el terminal.<\/span><\/h2>\n<p><span style=\"color: #000080;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-466\" title=\"twitter-linux\" src=\"http:\/\/angelsalvadorweb.com\/blogs2\/wp-content\/uploads\/2010\/05\/twitter-linux-300x117.jpg\" alt=\"twitter-linux\" width=\"300\" height=\"117\" \/><br \/>\n<\/span><\/p>\n<p>Si eres usuario de <strong>Twitter <\/strong>y <strong>Linux<\/strong>,  te interesar\u00e1 saber que puedes enviar tweets directamente desde el  terminal.<\/p>\n<p>Para<span style=\"color: #ff0000;\"> ello abrimos el terminal (Aplicaciones &gt;  Accesorios &gt; Terminal) y escribimos el siguiente c\u00f3digo:<\/span><\/p>\n<blockquote><p><strong><span style=\"color: #ff0000;\">curl -u usuario:password -d status=&#8221;Tweet desde el terminal, visita http:\/\/www.angelsalvadorweb.com\/blogs&#8221;\u00a0  http:\/\/twitter.com\/statuses\/update.xml<\/span><\/strong><\/p><\/blockquote>\n<p style=\"text-align: justify;\">En esta linea, reemplazamos las palabras <em>usuario<\/em> y <em>password<\/em> por nuestro usuario y contrase\u00f1a en Twitter. Un apunte sobre <strong>seguridad<\/strong>:  ten en cuenta que al escribir el comando <em>history<\/em> en el  terminal, accedes a los \u00faltimos comandos ejecutados. Si compartes tu  ordenador con m\u00e1s personas, podr\u00e1n ver tus \u00faltimos comandos, y en este  caso, tu contrase\u00f1a de Twitter. \u00bfC\u00f3mo lo evitamos?<\/p>\n<p style=\"text-align: justify;\">Sencillo, deja  un espacio antes del comando. Si al escribir el comando dejas un espacio  antes de la palabra curl, el comando no se guardar\u00e1 en el historial.<\/p>\n<p style=\"text-align: justify;\"><strong>Actualizado<\/strong>:  Roger ha explicado en los comentarios (gracias por tu aporte) una forma  sencilla de borrar el historial del terminal, simplemente escribimos el  siguiente comando:<\/p>\n<blockquote>\n<p style=\"text-align: justify;\"><em><span style=\"color: #ff0000;\"><strong>history -c<\/strong><\/span><\/em><\/p>\n<\/blockquote>\n<blockquote><\/blockquote>\n<blockquote><p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-468\" title=\"follow-me\" src=\"http:\/\/angelsalvadorweb.com\/blogs2\/wp-content\/uploads\/2010\/05\/follow-me1.jpg\" alt=\"follow-me\" width=\"126\" height=\"88\" \/><\/p><\/blockquote>\n<blockquote>\n<p style=\"text-align: justify;\"><em><span style=\"color: #ff0000;\"><strong><br \/>\n<\/strong><\/span><\/em><\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Twitter desde el terminal. Si eres usuario de Twitter y Linux, te interesar\u00e1 saber que puedes enviar tweets directamente desde el terminal. Para ello abrimos el terminal (Aplicaciones &gt; Accesorios &gt; Terminal) y escribimos el siguiente c\u00f3digo: curl -u usuario:password&#8230;..<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14,26],"tags":[354,309,310],"class_list":["post-465","post","type-post","status-publish","format-standard","hentry","category-internet","category-linux","tag-linux","tag-twitter","tag-twitter-linux"],"_links":{"self":[{"href":"https:\/\/angelsalvadorweb.com\/mx\/index.php?rest_route=\/wp\/v2\/posts\/465","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/angelsalvadorweb.com\/mx\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/angelsalvadorweb.com\/mx\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/angelsalvadorweb.com\/mx\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/angelsalvadorweb.com\/mx\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=465"}],"version-history":[{"count":0,"href":"https:\/\/angelsalvadorweb.com\/mx\/index.php?rest_route=\/wp\/v2\/posts\/465\/revisions"}],"wp:attachment":[{"href":"https:\/\/angelsalvadorweb.com\/mx\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=465"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/angelsalvadorweb.com\/mx\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=465"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/angelsalvadorweb.com\/mx\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=465"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}