{"id":485,"date":"2012-12-04T14:07:02","date_gmt":"2012-12-04T17:07:02","guid":{"rendered":"http:\/\/www.maurom.com\/blog\/?p=485"},"modified":"2012-12-04T14:09:14","modified_gmt":"2012-12-04T17:09:14","slug":"trivia-de-enlaces-en-linux-ls-l","status":"publish","type":"post","link":"https:\/\/maurom.com\/blog\/2012\/12\/04\/trivia-de-enlaces-en-linux-ls-l\/","title":{"rendered":"Trivia de enlaces en Linux: ls -l"},"content":{"rendered":"<p>En una charla de mate con un amigo dimos con las siguientes cuestiones, que pudimos dilucidar luego de pensar un buen rato (y sin salir a buscar en google o la wikipedia).<\/p>\n<p>Dado el siguiente \u00e1rbol y posterior listado de directorio:<\/p>\n<pre>.\r\n\u251c\u2500\u2500 bin\r\n\u251c\u2500\u2500 examples\r\n\u251c\u2500\u2500 pydasm\r\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 build\r\n\u2502\u00a0\u00a0     \u251c\u2500\u2500 lib.linux-x86_64-2.6\r\n\u2502\u00a0\u00a0     \u2514\u2500\u2500 temp.linux-x86_64-2.6\r\n\u2514\u2500\u2500 rbdasm\r\n\r\nmauro@stereo:\/usr\/local\/src\/libdasm-1.5$ ls -la\r\ntotal 900\r\ndrwxr-xr-x <strong>6<\/strong> mauro mauro   4096 dic 15  2011 .\r\ndrwxrwsr-x <strong>5<\/strong> root  staff   4096 nov 29 12:04 ..\r\ndrwxr-xr-x <strong>2<\/strong> mauro mauro   4096 ene  9  2006 bin\r\ndrwxr-xr-x <strong>2<\/strong> mauro mauro   4096 dic 15  2011 examples\r\n-rw-r--r-- <strong>1<\/strong> mauro mauro   5558 dic 27  2007 HISTORY.txt\r\n-rw-r--r-- <strong>1<\/strong> mauro mauro 163894 dic 15  2011 libdasm.a\r\n-rw-r--r-- <strong>1<\/strong> mauro mauro  31201 feb 14  2006 libdasm.c\r\n-rw-r--r-- <strong>1<\/strong> mauro mauro    344 ene  9  2006 libdasm.def\r\n-rw-r--r-- <strong>1<\/strong> mauro mauro  17199 feb 21  2006 libdasm.h\r\n-rw-r--r-- <strong>1<\/strong> mauro mauro 162312 dic 15  2011 libdasm.o\r\n-rwxr-xr-x <strong>1<\/strong> mauro mauro 161338 dic 15  2011 libdasm.so\r\n-rw-r--r-- <strong>1<\/strong> mauro mauro    785 feb 21  2006 LIB.txt\r\n-rw-r--r-- <strong>1<\/strong> mauro mauro    605 ene  9  2006 Makefile\r\n-rw-r--r-- <strong>1<\/strong> mauro mauro    183 ene  9  2006 Makefile.msvc\r\n-rw-r--r-- <strong>1<\/strong> mauro mauro 283110 feb 21  2006 opcode_tables.h\r\ndrwxr-xr-x <strong>3<\/strong> mauro mauro   4096 dic 15  2011 pydasm\r\ndrwxr-xr-x <strong>2<\/strong> mauro mauro   4096 ene 11  2006 rbdasm\r\n-rw-r--r-- <strong>1<\/strong> mauro mauro  14460 feb 21  2006 README.txt\r\n-rw-r--r-- <strong>1<\/strong> mauro mauro    161 ene  9  2006 TODO.txt<\/pre>\n<p>Con el \u00fanico fin de molestarles, ac\u00e1 van unas preguntas:<\/p>\n<ol>\n<li>\u00bfQu\u00e9 representan los n\u00fameros de la segunda columna del listado?<\/li>\n<li>\u00bfPodr\u00eda un archivo tener un n\u00famero mayor a 1?<\/li>\n<li>\u00bfPor qu\u00e9 las entradas <em>. (punto)<\/em>, <em>.. (punto-punto)<\/em> y <em>pydasm<\/em> (entre otras) tienen distintos n\u00fameros?<\/li>\n<li>\u00bfMediante qu\u00e9 llamada a sistema (funci\u00f3n, no comando) puede obtenerse ese valor?<\/li>\n<li>\u00bfCu\u00e1l es el campo relevante en la estructura obtenida por la llamada del punto anterior?<\/li>\n<\/ol>\n<p>Se los dejo como tarea y en quince d\u00edas vemos que sale&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>En una charla de mate con un amigo dimos con las siguientes cuestiones, que pudimos dilucidar luego de pensar un buen rato (y sin salir a buscar en google o la wikipedia). Dado el siguiente \u00e1rbol y posterior listado de directorio: . \u251c\u2500\u2500 bin \u251c\u2500\u2500 examples \u251c\u2500\u2500 pydasm \u2502\u00a0\u00a0 \u2514\u2500\u2500 build \u2502\u00a0\u00a0 \u251c\u2500\u2500 lib.linux-x86_64-2.6 \u2502\u00a0\u00a0 [&hellip;]<\/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":[3],"_links":{"self":[{"href":"https:\/\/maurom.com\/blog\/wp-json\/wp\/v2\/posts\/485"}],"collection":[{"href":"https:\/\/maurom.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/maurom.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/maurom.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/maurom.com\/blog\/wp-json\/wp\/v2\/comments?post=485"}],"version-history":[{"count":0,"href":"https:\/\/maurom.com\/blog\/wp-json\/wp\/v2\/posts\/485\/revisions"}],"wp:attachment":[{"href":"https:\/\/maurom.com\/blog\/wp-json\/wp\/v2\/media?parent=485"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/maurom.com\/blog\/wp-json\/wp\/v2\/categories?post=485"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/maurom.com\/blog\/wp-json\/wp\/v2\/tags?post=485"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}