<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Linux &#38;&#38; PHP @ NomikOS – BLOG &#187; Comandos</title>
	<atom:link href="http://nomikos.info/category/linux/comandos/feed" rel="self" type="application/rss+xml" />
	<link>http://nomikos.info</link>
	<description>Artículos y temas sobre programación web: Linux, PHP, jQuery, CodeIgniter/Kohana y mis trabajos en linea en RAC. Igor Parra Bastias – NomikOS</description>
	<lastBuildDate>Wed, 18 Aug 2010 14:22:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Comandos linux &#8211; calc: calculadora.</title>
		<link>http://nomikos.info/2010/08/13/comandos-linux-calc-calculadora.html</link>
		<comments>http://nomikos.info/2010/08/13/comandos-linux-calc-calculadora.html#comments</comments>
		<pubDate>Fri, 13 Aug 2010 14:31:06 +0000</pubDate>
		<dc:creator>NomikOS</dc:creator>
				<category><![CDATA[Comandos]]></category>

		<guid isPermaLink="false">http://nomikos.info/?p=1817</guid>
		<description><![CDATA[He notado que un rasgo distintivo de much@s programador@s y usuarios avanzados de computadores es su simpatía por los gatos. Es muy común encontrar fotos de ellos en sus blogs o ser presentados como &#8220;gato oficial&#8221; de un proyecto. Cuando a eso agregas una sana antipatía por el mouse, es que has encontrado un tipo [...]


Posts relacionados:<ol><li><a href='http://nomikos.info/2010/08/12/comandos-linux-cal-calendario.html' rel='bookmark' title='Permanent Link: Comandos linux &#8211; cal: calendario.'>Comandos linux &#8211; cal: calendario.</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>He notado que un rasgo distintivo de much@s programador@s y usuarios avanzados de computadores es su simpatía por los gatos. Es muy común encontrar fotos de ellos en sus blogs o ser presentados como &#8220;gato oficial&#8221; de un proyecto. Cuando a eso agregas una sana antipatía por el mouse, es que has encontrado un tipo de cuidado. >_></p>
<hr />
<h1>calc</h1>
<p>Una completa calculadora con tan sólo 4 teclazos.<br />
Primero vemos su página de manual.</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #c20cb9; font-weight: bold;">man</span> calc<br />
NAME<br />
&nbsp; &nbsp; &nbsp; &nbsp;calc - arbitrary precision calculator<br />
<br />
SYNOPSIS<br />
&nbsp; &nbsp; &nbsp; &nbsp;calc <span style="color: #7a0874; font-weight: bold;">&#91;</span>-c<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>-C<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>-d<span style="color: #7a0874; font-weight: bold;">&#93;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">&#91;</span>-D calc_debug<span style="color: #7a0874; font-weight: bold;">&#91;</span>:resource_debug<span style="color: #7a0874; font-weight: bold;">&#91;</span>:user_debug<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">&#91;</span>-e<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>-h<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>-i<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>-m mode<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>-O<span style="color: #7a0874; font-weight: bold;">&#93;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">&#91;</span>-p<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>-q<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>-s<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>-u<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>-v<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span>--<span style="color: #7a0874; font-weight: bold;">&#93;</span> calc_cmd ...<span style="color: #7a0874; font-weight: bold;">&#93;</span><br />
<br />
... etc ...</div></td></tr></tbody></table></div>
<p>Ejemplos:</p>
<p>Hay dos modos de usar la calculadora.<br />
La más rápida es como un comando seguido de un argumento que es la expresión a calcular:</p>
<div class="codecolorer-container fortran blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="fortran codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ calc <span style="color: #cc66cc;">9</span><span style="color: #339933;">*</span><span style="color: #cc66cc;">9</span><span style="color: #339933;">+</span><span style="color: #cc66cc;">9</span><br />
&nbsp; &nbsp; <span style="color: #cc66cc;">90</span></div></td></tr></tbody></table></div>
<p>Y la otra es ejecutarla como programa. Veremos que el prompt de calc es el punto y coma (;) y que punto (.) representa el último resultado, muy útil para los flojos como somos todos los que usamos el teclado hasta para clavar.</p>
<div class="codecolorer-container fortran blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br /></div></td><td><div class="fortran codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ calc<br />
<span style="color: #666666; font-style: italic;">! C-style arbitrary precision calculator (version 2.12.3.3)</span><br />
<span style="color: #666666; font-style: italic;">! Calc is open software. For license details type: &nbsp;help copyright</span><br />
<span style="color: #666666; font-style: italic;">! [Type &quot;exit&quot; to exit, or &quot;help&quot; for help.]</span><br />
<br />
; <span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">9</span><span style="color: #339933;">*</span><span style="color: #cc66cc;">9</span><span style="color: #339933;">+</span><span style="color: #cc66cc;">9</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">/</span><span style="color: #cc66cc;">10</span><br />
&nbsp; &nbsp; <span style="color: #cc66cc;">9</span><br />
; <span style="color: #993333;">cos</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #cc66cc;">1</span><br />
; <span style="color: #993333;">log</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; ~<span style="color: #cc66cc;">0.30102999566398119521</span><br />
; <span style="color: #993333;">sqrt</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #cc66cc;">1.4142135623730950488</span><br />
; pi<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #cc66cc;">3.14159265358979323846</span><br />
; 2i <span style="color: #339933;">+</span> 3i<br />
&nbsp; &nbsp; 5i<br />
<br />
<span style="color: #666666; font-style: italic;">! usando punto como último resultado</span><br />
<br />
; .<span style="color: #339933;">*</span><span style="color: #cc66cc;">1</span><br />
&nbsp; &nbsp; 5i<br />
; .<span style="color: #339933;">^</span><span style="color: #cc66cc;">2</span><br />
&nbsp; &nbsp; <span style="color: #339933;">-</span><span style="color: #cc66cc;">25</span><br />
<br />
<span style="color: #666666; font-style: italic;">! resultados como fracciones</span><br />
<br />
; config<span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;mode&quot;</span>, <span style="color: #ff0000;">&quot;fraction&quot;</span><span style="color: #009900;">&#41;</span>,<br />
; <span style="color: #cc66cc;">10</span><span style="color: #339933;">/</span><span style="color: #cc66cc;">30</span><br />
&nbsp; &nbsp; <span style="color: #cc66cc;">1</span><span style="color: #339933;">/</span><span style="color: #cc66cc;">3</span><br />
; <span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">5</span><span style="color: #339933;">+</span><span style="color: #cc66cc;">5</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">/</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">5</span><span style="color: #339933;">*</span><span style="color: #cc66cc;">6</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #cc66cc;">1</span><span style="color: #339933;">/</span><span style="color: #cc66cc;">3</span><br />
<br />
<span style="color: #666666; font-style: italic;">! precedencia de operadores: () + - * /</span><br />
<br />
; <span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">5</span><span style="color: #339933;">+</span><span style="color: #cc66cc;">5</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">/</span><span style="color: #cc66cc;">5</span><span style="color: #339933;">*</span><span style="color: #cc66cc;">6</span><br />
&nbsp; &nbsp; <span style="color: #cc66cc;">12</span><br />
<br />
<span style="color: #666666; font-style: italic;">! salir</span><br />
<br />
; <span style="color: #b1b100;">exit</span></div></td></tr></tbody></table></div>
<p>más info en: <a target="_blank" href="http://isthe.com/chongo/tech/comp/calc/calc-whatis.html">http://isthe.com/chongo/tech/comp/calc/calc-whatis.html</a></p>
<hr />
<h1>Ingenieros entran gratis</h1>
<p>Creo que la mayor ventaja de esta calculadora es que cuentas con todo el poder del procesador de tu pececito. Es decir, anda a poner esto en tu calculadorcita de bolsillo: 2^1000000. Sí, 2 elevado a un millón. El resultado puede tardar uno o dos segundos pero lo obtienes dígito a dígito y no en notación científica, No lo transcribo aquí pa&#8217; no gastarte la pantalla.<br />
Lo que quiero decir es que para un profesional de los números puede resultar fascinante investigar este comando. Para ello usa:</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ info calc</div></td></tr></tbody></table></div>
<p>Para los que aprendieron a usar calculadoras HP-48 para algo más que determinar <em>límites</em> visualmente mediante gráficos, les encantará saber que puede usar notación <a target="_blank" href="http://es.wikipedia.org/wiki/Notaci%C3%B3n_polaca_inversa">RPN</a>. Sí, eso de poner los números primero y después el operador ( 2 3 + ).</p>
<p><br style="clear:both"></p>
<hr />
<p><center></p>
<p><a href="http://nomikos.info/wp-content/uploads/2010/08/hp48gx.jpg"><img src="http://nomikos.info/wp-content/uploads/2010/08/hp48gx-166x300.jpg" alt="" title="HP48-GX" width="166" height="300" class="aligncenter size-medium wp-image-1784" /></a></p>
<p><strong>Calculadora científica HP 48GX</strong> &#8211; Es lo que por estos lados llamamos: la raja. No gastes esfuerzos buscando la tecla <em>es igual</em> [=] Eso queda para quienes recién vienen saliendo de contar con los dedos.</p>
<p><br style="clear:both"><br />
<a href="http://nomikos.info/wp-content/uploads/2010/08/xcalc.png"><img src="http://nomikos.info/wp-content/uploads/2010/08/xcalc-217x300.png" alt="" title="xcalc" width="217" height="300" class="aligncenter size-medium wp-image-1809" /></a></p>
<p><strong>xcalc</strong> Versión X de calc: Más apropiada para el uso cotidiano puedes ejecutar una emulación gráfica de la TI-30 (Texas Instruments).</p>
<p><br style="clear:both"></p>
<p><a href="http://nomikos.info/wp-content/uploads/2010/08/xcalc-hp10c.png"><img src="http://nomikos.info/wp-content/uploads/2010/08/xcalc-hp10c.png" alt="" title="xcalc-hp10c" width="452" height="215" class="aligncenter size-full wp-image-1811" /></a></p>
<p><strong>xcalc -rpn</strong> Y aquí emulando la HP-10C (Hewllet Packard) en que puedes usar notación RPN.</p>
<p></center></p>
<p><br style="clear:both"></p>
<hr />
<h1> 	&Pi; para siempre</h1>
<p>Finalmente, una entretención para los adeptos del número PI (&pi;).  La versión calc-2.12.4 introduce una nueva función llamada piforever() que imprime tantos dígitos de PI como lo permita tu CPU y memoria. La última vez que la vi andaba por aquí: <a href="http://www.isthe.com/chongo/src/calc/calc-2.12.4.0.tar.bz2">http://www.isthe.com/chongo/src/calc/calc-2.12.4.0.tar.bz2</a> (debes compilarlo manualmente, <a target="_blank" href="http://www.isthe.com/chongo/src/calc/HOWTO.INSTALL">http://www.isthe.com/chongo/src/calc/HOWTO.INSTALL</a>) A continuación una muestra de la salida:</p>
<hr />
<div class="codecolorer-container text blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br />49<br />50<br />51<br />52<br />53<br />54<br />55<br />56<br />57<br />58<br />59<br />60<br />61<br />62<br />63<br />64<br />65<br />66<br />67<br />68<br />69<br />70<br />71<br />72<br />73<br />74<br />75<br />76<br />77<br />78<br />79<br />80<br />81<br />82<br />83<br />84<br />85<br />86<br />87<br />88<br />89<br />90<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ /usr/share/doc/apcalc-common/examples/piforever<br />
qpi(epsilon) defined<br />
piforever() defined<br />
pi ~= 3.<br />
<br />
1415926535 8979323846 2643383279 5028841971 6939937510 <br />
5820974944 5923078164 0628620899 8628034825 3421170679 <br />
8214808651 3282306647 0938446095 5058223172 5359408128 <br />
4811174502 8410270193 8521105559 6446229489 5493038196 <br />
4428810975 6659334461 2847564823 3786783165 2712019091 <br />
4564856692 3460348610 4543266482 1339360726 0249141273 <br />
7245870066 0631558817 4881520920 9628292540 9171536436 <br />
7892590360 0113305305 4882046652 1384146951 9415116094 <br />
3305727036 5759591953 0921861173 8193261179 3105118548 <br />
0744623799 6274956735 1885752724 8912279381 8301194912 <br />
9833673362 4406566430 8602139494 6395224737 1907021798 <br />
6094370277 0539217176 2931767523 8467481846 7669405132 <br />
0005681271 4526356082 7785771342 7577896091 7363717872 <br />
1468440901 2249534301 4654958537 1050792279 6892589235 <br />
4201995611 2129021960 8640344181 5981362977 4771309960 <br />
5187072113 4999999837 2978049951 0597317328 1609631859 <br />
5024459455 3469083026 4252230825 3344685035 2619311881 <br />
7101000313 7838752886 5875332083 8142061717 7669147303 <br />
5982534904 2875546873 1159562863 8823537875 9375195778 <br />
1857780532 1712268066 1300192787 6611195909 2164201989 <br />
<br />
3809525720 1065485863 2788659361 5338182796 8230301952 <br />
0353018529 6899577362 2599413891 2497217752 8347913151 <br />
5574857242 4541506959 5082953311 6861727855 8890750983 <br />
8175463746 4939319255 0604009277 0167113900 9848824012 <br />
8583616035 6370766010 4710181942 9555961989 4676783744 <br />
9448255379 7747268471 0404753464 6208046684 2590694912 <br />
9331367702 8989152104 7521620569 6602405803 8150193511 <br />
2533824300 3558764024 7496473263 9141992726 0426992279 <br />
6782354781 6360093417 2164121992 4586315030 2861829745 <br />
5570674983 8505494588 5869269956 9092721079 7509302955 <br />
3211653449 8720275596 0236480665 4991198818 3479775356 <br />
6369807426 5425278625 5181841757 4672890977 7727938000 <br />
8164706001 6145249192 1732172147 7235014144 1973568548 <br />
1613611573 5255213347 5741849468 4385233239 0739414333 <br />
4547762416 8625189835 6948556209 9219222184 2725502542 <br />
5688767179 0494601653 4668049886 2723279178 6085784383 <br />
8279679766 8145410095 3883786360 9506800642 2512520511 <br />
7392984896 0841284886 2694560424 1965285022 2106611863 <br />
0674427862 2039194945 0471237137 8696095636 4371917287 <br />
4677646575 7396241389 0865832645 9958133904 7802759009 <br />
<br />
9465764078 9512694683 9835259570 9825822620 5224894077 <br />
2671947826 8482601476 9909026401 3639443745 5305068203 <br />
4962524517 4939965143 1429809190 6592509372 2169646151 <br />
5709858387 4105978859 5977297549 8930161753 9284681382 <br />
6868386894 2774155991 8559252459 5395943104 9972524680 <br />
8459872736 4469584865 3836736222 6260991246 0805124388 <br />
4390451244 1365497627 8079771569 1435997700 1296160894 <br />
4169486855 5848406353 4220722258 2848864815 8456028506 <br />
0168427394 5226746767 8895252138 5225499546 6672782398 <br />
6456596116 3548862305 7745649803 5593634568 1743241125 <br />
1507606947 9451096596 0940252288 7971089314 5669136867 <br />
2287489405 6010150330 8617928680 9208747609 1782493858 <br />
9009714909 6759852613 6554978189 3129784821 6829989487 <br />
2265880485 7564014270 4775551323 7964145152 3746234364 <br />
5428584447 9526586782 1051141354 7357395231 1342716610 <br />
2135969536 2314429524 8493718711 0145765403 5902799344 <br />
0374200731 0578539062 1983874478 0847848968 3321445713 <br />
8687519435 0643021845 3191048481 0053706146 8067491927 <br />
8191197939 9520614196 6342875444 0643745123 7181921799 <br />
9839101591 9561814675 1426912397 4894090718 6494231961 <br />
<br />
5679452080 9514655022 5231603881 9301420937 6213785595 <br />
6638937787 0830390697 9207734672 2182562599 6615014215 <br />
0306803844 7734549202 6054146659 2520149744 2850732518 <br />
6660021324 3408819071 0486331734 6496514539 0579626856 <br />
1005508106 6587969981 6357473638 4052571459 1028970641 <br />
4011097120 6280439039 7595156771 5770042033 7869936007 <br />
2305587631 7635942187 3125147120 5329281918 2618612586 <br />
7321579198 4148488291 6447060957 5270695722 0917567116 <br />
7229109816 9091528017 3506712748 5832228718 3520935396 <br />
5725121083 5791513698 8209144421 0067510334 6711031412 <br />
6711136990 8658516398 3150197016 5151168517 1437657618 <br />
3515565088 4909989859 9823873455 2833163550 7647918535 <br />
8932261854 8963213293 3089857064 2046752590 7091548141 <br />
6549859461 6371802709 8199430992 4488957571 2828905923 <br />
2332609729 9712084433 5732654893 8239119325 9746366730 <br />
5836041428 1388303203 8249037589 8524374417 0291327656 <br />
1809377344 4030707469 2112019130 2033038019 7621101100 <br />
4492932151 6084244485 9637669838 9522868478 3123552658 <br />
2131449576 8572624334 4189303968 6426243410 7732269780 <br />
2807318915 4411010446 8232527162 0105265227 2111660396 <br />
<br />
... etc ... forever! ...</div></td></tr></tbody></table></div>
<p><a href="http://nomikos.info/wp-content/uploads/2010/08/catsohigh.gif"><img src="http://nomikos.info/wp-content/uploads/2010/08/catsohigh.gif" alt="" title="cat so high" width="350" height="319" class="alignleft size-full wp-image-1758" /></a></p>
<p><br style="clear:both"></p>
<hr />
<p>A esto súmale el uso de <a href="http://nomikos.info/2009/04/29/uso-de-comando-mail-en-linux.html">mail</a> y <a href="http://nomikos.info/2010/08/12/comandos-linux-cal-calendario.html">cal</a> y ya puedes ir entrenando tu mejor gesto de desprecio cuando te pregunten que si es mejor KDE o Gnome&#8230; Ja! o/\o</p>


<p>Posts relacionados:<ol><li><a href='http://nomikos.info/2010/08/12/comandos-linux-cal-calendario.html' rel='bookmark' title='Permanent Link: Comandos linux &#8211; cal: calendario.'>Comandos linux &#8211; cal: calendario.</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://nomikos.info/2010/08/13/comandos-linux-calc-calculadora.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Comandos linux &#8211; cal: calendario.</title>
		<link>http://nomikos.info/2010/08/12/comandos-linux-cal-calendario.html</link>
		<comments>http://nomikos.info/2010/08/12/comandos-linux-cal-calendario.html#comments</comments>
		<pubDate>Fri, 13 Aug 2010 02:59:09 +0000</pubDate>
		<dc:creator>NomikOS</dc:creator>
				<category><![CDATA[Comandos]]></category>

		<guid isPermaLink="false">http://nomikos.info/?p=1772</guid>
		<description><![CDATA[cal Un completo calendario con tan sólo 3 teclazos. Como siempre conviene echar un vistazo al manual antes de usar un comando nuevo. 12345678910$ man cal NAME &#160; &#160; &#160;cal, ncal — displays a calendar and the date of easter SYNOPSIS &#160; &#160; &#160;cal &#91;-3jmy&#93; &#91;&#91;month&#93; year&#93; &#160; &#160; &#160;ncal &#91;-jJpwy&#93; &#91;-s country_code&#93; &#91;&#91;month&#93; year&#93; [...]]]></description>
			<content:encoded><![CDATA[<h1>cal</h1>
<p>Un completo calendario con tan sólo 3 teclazos.<br />
Como siempre conviene echar un vistazo al manual antes de usar un comando nuevo.</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #c20cb9; font-weight: bold;">man</span> <span style="color: #c20cb9; font-weight: bold;">cal</span><br />
NAME<br />
&nbsp; &nbsp; &nbsp;<span style="color: #c20cb9; font-weight: bold;">cal</span>, ncal — displays a calendar and the <span style="color: #c20cb9; font-weight: bold;">date</span> of easter<br />
<br />
SYNOPSIS<br />
&nbsp; &nbsp; &nbsp;<span style="color: #c20cb9; font-weight: bold;">cal</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>-3jmy<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span>month<span style="color: #7a0874; font-weight: bold;">&#93;</span> year<span style="color: #7a0874; font-weight: bold;">&#93;</span><br />
&nbsp; &nbsp; &nbsp;ncal <span style="color: #7a0874; font-weight: bold;">&#91;</span>-jJpwy<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>-s country_code<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span>month<span style="color: #7a0874; font-weight: bold;">&#93;</span> year<span style="color: #7a0874; font-weight: bold;">&#93;</span><br />
&nbsp; &nbsp; &nbsp;ncal <span style="color: #7a0874; font-weight: bold;">&#91;</span>-Jeo<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>year<span style="color: #7a0874; font-weight: bold;">&#93;</span><br />
<br />
... etc ...</div></td></tr></tbody></table></div>
<p>Ahora algunos ejemplos:</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;"># 3 meses, actual en el centro</span><br />
$ <span style="color: #c20cb9; font-weight: bold;">cal</span> <span style="color: #660033;">-3</span><br />
&nbsp; &nbsp; &nbsp;July <span style="color: #000000;">2010</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;August <span style="color: #000000;">2010</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;September <span style="color: #000000;">2010</span> &nbsp; &nbsp; <br />
Su Mo Tu We Th Fr Sa &nbsp;Su Mo Tu We Th Fr Sa &nbsp;Su Mo Tu We Th Fr Sa &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">1</span> &nbsp;<span style="color: #000000;">2</span> &nbsp;<span style="color: #000000;">3</span> &nbsp; <span style="color: #000000;">1</span> &nbsp;<span style="color: #000000;">2</span> &nbsp;<span style="color: #000000;">3</span> &nbsp;<span style="color: #000000;">4</span> &nbsp;<span style="color: #000000;">5</span> &nbsp;<span style="color: #000000;">6</span> &nbsp;<span style="color: #000000;">7</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">1</span> &nbsp;<span style="color: #000000;">2</span> &nbsp;<span style="color: #000000;">3</span> &nbsp;<span style="color: #000000;">4</span><br />
&nbsp;<span style="color: #000000;">4</span> &nbsp;<span style="color: #000000;">5</span> &nbsp;<span style="color: #000000;">6</span> &nbsp;<span style="color: #000000;">7</span> &nbsp;<span style="color: #000000;">8</span> &nbsp;<span style="color: #000000;">9</span> <span style="color: #000000;">10</span> &nbsp; <span style="color: #000000;">8</span> &nbsp;<span style="color: #000000;">9</span> <span style="color: #000000;">10</span> <span style="color: #000000;">11</span> <span style="color: #000000;">12</span> <span style="color: #000000;">13</span> <span style="color: #000000;">14</span> &nbsp; <span style="color: #000000;">5</span> &nbsp;<span style="color: #000000;">6</span> &nbsp;<span style="color: #000000;">7</span> &nbsp;<span style="color: #000000;">8</span> &nbsp;<span style="color: #000000;">9</span> <span style="color: #000000;">10</span> <span style="color: #000000;">11</span><br />
<span style="color: #000000;">11</span> <span style="color: #000000;">12</span> <span style="color: #000000;">13</span> <span style="color: #000000;">14</span> <span style="color: #000000;">15</span> <span style="color: #000000;">16</span> <span style="color: #000000;">17</span> &nbsp;<span style="color: #000000;">15</span> <span style="color: #000000;">16</span> <span style="color: #000000;">17</span> <span style="color: #000000;">18</span> <span style="color: #000000;">19</span> <span style="color: #000000;">20</span> <span style="color: #000000;">21</span> &nbsp;<span style="color: #000000;">12</span> <span style="color: #000000;">13</span> <span style="color: #000000;">14</span> <span style="color: #000000;">15</span> <span style="color: #000000;">16</span> <span style="color: #000000;">17</span> <span style="color: #000000;">18</span><br />
<span style="color: #000000;">18</span> <span style="color: #000000;">19</span> <span style="color: #000000;">20</span> <span style="color: #000000;">21</span> <span style="color: #000000;">22</span> <span style="color: #000000;">23</span> <span style="color: #000000;">24</span> &nbsp;<span style="color: #000000;">22</span> <span style="color: #000000;">23</span> <span style="color: #000000;">24</span> <span style="color: #000000;">25</span> <span style="color: #000000;">26</span> <span style="color: #000000;">27</span> <span style="color: #000000;">28</span> &nbsp;<span style="color: #000000;">19</span> <span style="color: #000000;">20</span> <span style="color: #000000;">21</span> <span style="color: #000000;">22</span> <span style="color: #000000;">23</span> <span style="color: #000000;">24</span> <span style="color: #000000;">25</span><br />
<span style="color: #000000;">25</span> <span style="color: #000000;">26</span> <span style="color: #000000;">27</span> <span style="color: #000000;">28</span> <span style="color: #000000;">29</span> <span style="color: #000000;">30</span> <span style="color: #000000;">31</span> &nbsp;<span style="color: #000000;">29</span> <span style="color: #000000;">30</span> <span style="color: #000000;">31</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">26</span> <span style="color: #000000;">27</span> <span style="color: #000000;">28</span> <span style="color: #000000;">29</span> <span style="color: #000000;">30</span></div></td></tr></tbody></table></div>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;"># en vertical con mes 8 y año 2010</span><br />
$ ncal <span style="color: #000000;">8</span> <span style="color: #000000;">2010</span><br />
&nbsp; &nbsp; August <span style="color: #000000;">2010</span><br />
Mo &nbsp; &nbsp; <span style="color: #000000;">2</span> &nbsp;<span style="color: #000000;">9</span> <span style="color: #000000;">16</span> <span style="color: #000000;">23</span> <span style="color: #000000;">30</span><br />
Tu &nbsp; &nbsp; <span style="color: #000000;">3</span> <span style="color: #000000;">10</span> <span style="color: #000000;">17</span> <span style="color: #000000;">24</span> <span style="color: #000000;">31</span><br />
We &nbsp; &nbsp; <span style="color: #000000;">4</span> <span style="color: #000000;">11</span> <span style="color: #000000;">18</span> <span style="color: #000000;">25</span> &nbsp; <br />
Th &nbsp; &nbsp; <span style="color: #000000;">5</span> <span style="color: #000000;">12</span> <span style="color: #000000;">19</span> <span style="color: #000000;">26</span> &nbsp; <br />
Fr &nbsp; &nbsp; <span style="color: #000000;">6</span> <span style="color: #000000;">13</span> <span style="color: #000000;">20</span> <span style="color: #000000;">27</span> &nbsp; <br />
Sa &nbsp; &nbsp; <span style="color: #000000;">7</span> <span style="color: #000000;">14</span> <span style="color: #000000;">21</span> <span style="color: #000000;">28</span> &nbsp; <br />
Su &nbsp;<span style="color: #000000;">1</span> &nbsp;<span style="color: #000000;">8</span> <span style="color: #000000;">15</span> <span style="color: #000000;">22</span> <span style="color: #000000;">29</span></div></td></tr></tbody></table></div>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;"># todo el año 2010</span><br />
$ <span style="color: #c20cb9; font-weight: bold;">cal</span> <span style="color: #000000;">2010</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">2010</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
<br />
&nbsp; &nbsp; &nbsp; January &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; February &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; March &nbsp; &nbsp; &nbsp; &nbsp;<br />
Su Mo Tu We Th Fr Sa &nbsp;Su Mo Tu We Th Fr Sa &nbsp;Su Mo Tu We Th Fr Sa<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">1</span> &nbsp;<span style="color: #000000;">2</span> &nbsp; &nbsp; &nbsp;<span style="color: #000000;">1</span> &nbsp;<span style="color: #000000;">2</span> &nbsp;<span style="color: #000000;">3</span> &nbsp;<span style="color: #000000;">4</span> &nbsp;<span style="color: #000000;">5</span> &nbsp;<span style="color: #000000;">6</span> &nbsp; &nbsp; &nbsp;<span style="color: #000000;">1</span> &nbsp;<span style="color: #000000;">2</span> &nbsp;<span style="color: #000000;">3</span> &nbsp;<span style="color: #000000;">4</span> &nbsp;<span style="color: #000000;">5</span> &nbsp;<span style="color: #000000;">6</span><br />
&nbsp;<span style="color: #000000;">3</span> &nbsp;<span style="color: #000000;">4</span> &nbsp;<span style="color: #000000;">5</span> &nbsp;<span style="color: #000000;">6</span> &nbsp;<span style="color: #000000;">7</span> &nbsp;<span style="color: #000000;">8</span> &nbsp;<span style="color: #000000;">9</span> &nbsp; <span style="color: #000000;">7</span> &nbsp;<span style="color: #000000;">8</span> &nbsp;<span style="color: #000000;">9</span> <span style="color: #000000;">10</span> <span style="color: #000000;">11</span> <span style="color: #000000;">12</span> <span style="color: #000000;">13</span> &nbsp; <span style="color: #000000;">7</span> &nbsp;<span style="color: #000000;">8</span> &nbsp;<span style="color: #000000;">9</span> <span style="color: #000000;">10</span> <span style="color: #000000;">11</span> <span style="color: #000000;">12</span> <span style="color: #000000;">13</span><br />
<span style="color: #000000;">10</span> <span style="color: #000000;">11</span> <span style="color: #000000;">12</span> <span style="color: #000000;">13</span> <span style="color: #000000;">14</span> <span style="color: #000000;">15</span> <span style="color: #000000;">16</span> &nbsp;<span style="color: #000000;">14</span> <span style="color: #000000;">15</span> <span style="color: #000000;">16</span> <span style="color: #000000;">17</span> <span style="color: #000000;">18</span> <span style="color: #000000;">19</span> <span style="color: #000000;">20</span> &nbsp;<span style="color: #000000;">14</span> <span style="color: #000000;">15</span> <span style="color: #000000;">16</span> <span style="color: #000000;">17</span> <span style="color: #000000;">18</span> <span style="color: #000000;">19</span> <span style="color: #000000;">20</span><br />
<span style="color: #000000;">17</span> <span style="color: #000000;">18</span> <span style="color: #000000;">19</span> <span style="color: #000000;">20</span> <span style="color: #000000;">21</span> <span style="color: #000000;">22</span> <span style="color: #000000;">23</span> &nbsp;<span style="color: #000000;">21</span> <span style="color: #000000;">22</span> <span style="color: #000000;">23</span> <span style="color: #000000;">24</span> <span style="color: #000000;">25</span> <span style="color: #000000;">26</span> <span style="color: #000000;">27</span> &nbsp;<span style="color: #000000;">21</span> <span style="color: #000000;">22</span> <span style="color: #000000;">23</span> <span style="color: #000000;">24</span> <span style="color: #000000;">25</span> <span style="color: #000000;">26</span> <span style="color: #000000;">27</span><br />
<span style="color: #000000;">24</span> <span style="color: #000000;">25</span> <span style="color: #000000;">26</span> <span style="color: #000000;">27</span> <span style="color: #000000;">28</span> <span style="color: #000000;">29</span> <span style="color: #000000;">30</span> &nbsp;<span style="color: #000000;">28</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">28</span> <span style="color: #000000;">29</span> <span style="color: #000000;">30</span> <span style="color: #000000;">31</span> &nbsp; &nbsp; &nbsp; &nbsp; <br />
<span style="color: #000000;">31</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp;April &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;May &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; June &nbsp; &nbsp; &nbsp; &nbsp;<br />
Su Mo Tu We Th Fr Sa &nbsp;Su Mo Tu We Th Fr Sa &nbsp;Su Mo Tu We Th Fr Sa<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">1</span> &nbsp;<span style="color: #000000;">2</span> &nbsp;<span style="color: #000000;">3</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">1</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">1</span> &nbsp;<span style="color: #000000;">2</span> &nbsp;<span style="color: #000000;">3</span> &nbsp;<span style="color: #000000;">4</span> &nbsp;<span style="color: #000000;">5</span><br />
&nbsp;<span style="color: #000000;">4</span> &nbsp;<span style="color: #000000;">5</span> &nbsp;<span style="color: #000000;">6</span> &nbsp;<span style="color: #000000;">7</span> &nbsp;<span style="color: #000000;">8</span> &nbsp;<span style="color: #000000;">9</span> <span style="color: #000000;">10</span> &nbsp; <span style="color: #000000;">2</span> &nbsp;<span style="color: #000000;">3</span> &nbsp;<span style="color: #000000;">4</span> &nbsp;<span style="color: #000000;">5</span> &nbsp;<span style="color: #000000;">6</span> &nbsp;<span style="color: #000000;">7</span> &nbsp;<span style="color: #000000;">8</span> &nbsp; <span style="color: #000000;">6</span> &nbsp;<span style="color: #000000;">7</span> &nbsp;<span style="color: #000000;">8</span> &nbsp;<span style="color: #000000;">9</span> <span style="color: #000000;">10</span> <span style="color: #000000;">11</span> <span style="color: #000000;">12</span><br />
<span style="color: #000000;">11</span> <span style="color: #000000;">12</span> <span style="color: #000000;">13</span> <span style="color: #000000;">14</span> <span style="color: #000000;">15</span> <span style="color: #000000;">16</span> <span style="color: #000000;">17</span> &nbsp; <span style="color: #000000;">9</span> <span style="color: #000000;">10</span> <span style="color: #000000;">11</span> <span style="color: #000000;">12</span> <span style="color: #000000;">13</span> <span style="color: #000000;">14</span> <span style="color: #000000;">15</span> &nbsp;<span style="color: #000000;">13</span> <span style="color: #000000;">14</span> <span style="color: #000000;">15</span> <span style="color: #000000;">16</span> <span style="color: #000000;">17</span> <span style="color: #000000;">18</span> <span style="color: #000000;">19</span><br />
<span style="color: #000000;">18</span> <span style="color: #000000;">19</span> <span style="color: #000000;">20</span> <span style="color: #000000;">21</span> <span style="color: #000000;">22</span> <span style="color: #000000;">23</span> <span style="color: #000000;">24</span> &nbsp;<span style="color: #000000;">16</span> <span style="color: #000000;">17</span> <span style="color: #000000;">18</span> <span style="color: #000000;">19</span> <span style="color: #000000;">20</span> <span style="color: #000000;">21</span> <span style="color: #000000;">22</span> &nbsp;<span style="color: #000000;">20</span> <span style="color: #000000;">21</span> <span style="color: #000000;">22</span> <span style="color: #000000;">23</span> <span style="color: #000000;">24</span> <span style="color: #000000;">25</span> <span style="color: #000000;">26</span><br />
<span style="color: #000000;">25</span> <span style="color: #000000;">26</span> <span style="color: #000000;">27</span> <span style="color: #000000;">28</span> <span style="color: #000000;">29</span> <span style="color: #000000;">30</span> &nbsp; &nbsp; <span style="color: #000000;">23</span> <span style="color: #000000;">24</span> <span style="color: #000000;">25</span> <span style="color: #000000;">26</span> <span style="color: #000000;">27</span> <span style="color: #000000;">28</span> <span style="color: #000000;">29</span> &nbsp;<span style="color: #000000;">27</span> <span style="color: #000000;">28</span> <span style="color: #000000;">29</span> <span style="color: #000000;">30</span> &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">30</span> <span style="color: #000000;">31</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; July &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; August &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;September &nbsp; &nbsp; &nbsp;<br />
Su Mo Tu We Th Fr Sa &nbsp;Su Mo Tu We Th Fr Sa &nbsp;Su Mo Tu We Th Fr Sa<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">1</span> &nbsp;<span style="color: #000000;">2</span> &nbsp;<span style="color: #000000;">3</span> &nbsp; <span style="color: #000000;">1</span> &nbsp;<span style="color: #000000;">2</span> &nbsp;<span style="color: #000000;">3</span> &nbsp;<span style="color: #000000;">4</span> &nbsp;<span style="color: #000000;">5</span> &nbsp;<span style="color: #000000;">6</span> &nbsp;<span style="color: #000000;">7</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">1</span> &nbsp;<span style="color: #000000;">2</span> &nbsp;<span style="color: #000000;">3</span> &nbsp;<span style="color: #000000;">4</span><br />
&nbsp;<span style="color: #000000;">4</span> &nbsp;<span style="color: #000000;">5</span> &nbsp;<span style="color: #000000;">6</span> &nbsp;<span style="color: #000000;">7</span> &nbsp;<span style="color: #000000;">8</span> &nbsp;<span style="color: #000000;">9</span> <span style="color: #000000;">10</span> &nbsp; <span style="color: #000000;">8</span> &nbsp;<span style="color: #000000;">9</span> <span style="color: #000000;">10</span> <span style="color: #000000;">11</span> <span style="color: #000000;">12</span> <span style="color: #000000;">13</span> <span style="color: #000000;">14</span> &nbsp; <span style="color: #000000;">5</span> &nbsp;<span style="color: #000000;">6</span> &nbsp;<span style="color: #000000;">7</span> &nbsp;<span style="color: #000000;">8</span> &nbsp;<span style="color: #000000;">9</span> <span style="color: #000000;">10</span> <span style="color: #000000;">11</span><br />
<span style="color: #000000;">11</span> <span style="color: #000000;">12</span> <span style="color: #000000;">13</span> <span style="color: #000000;">14</span> <span style="color: #000000;">15</span> <span style="color: #000000;">16</span> <span style="color: #000000;">17</span> &nbsp;<span style="color: #000000;">15</span> <span style="color: #000000;">16</span> <span style="color: #000000;">17</span> <span style="color: #000000;">18</span> <span style="color: #000000;">19</span> <span style="color: #000000;">20</span> <span style="color: #000000;">21</span> &nbsp;<span style="color: #000000;">12</span> <span style="color: #000000;">13</span> <span style="color: #000000;">14</span> <span style="color: #000000;">15</span> <span style="color: #000000;">16</span> <span style="color: #000000;">17</span> <span style="color: #000000;">18</span><br />
<span style="color: #000000;">18</span> <span style="color: #000000;">19</span> <span style="color: #000000;">20</span> <span style="color: #000000;">21</span> <span style="color: #000000;">22</span> <span style="color: #000000;">23</span> <span style="color: #000000;">24</span> &nbsp;<span style="color: #000000;">22</span> <span style="color: #000000;">23</span> <span style="color: #000000;">24</span> <span style="color: #000000;">25</span> <span style="color: #000000;">26</span> <span style="color: #000000;">27</span> <span style="color: #000000;">28</span> &nbsp;<span style="color: #000000;">19</span> <span style="color: #000000;">20</span> <span style="color: #000000;">21</span> <span style="color: #000000;">22</span> <span style="color: #000000;">23</span> <span style="color: #000000;">24</span> <span style="color: #000000;">25</span><br />
<span style="color: #000000;">25</span> <span style="color: #000000;">26</span> <span style="color: #000000;">27</span> <span style="color: #000000;">28</span> <span style="color: #000000;">29</span> <span style="color: #000000;">30</span> <span style="color: #000000;">31</span> &nbsp;<span style="color: #000000;">29</span> <span style="color: #000000;">30</span> <span style="color: #000000;">31</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">26</span> <span style="color: #000000;">27</span> <span style="color: #000000;">28</span> <span style="color: #000000;">29</span> <span style="color: #000000;">30</span> &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; October &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; November &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;December &nbsp; &nbsp; &nbsp;<br />
Su Mo Tu We Th Fr Sa &nbsp;Su Mo Tu We Th Fr Sa &nbsp;Su Mo Tu We Th Fr Sa<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">1</span> &nbsp;<span style="color: #000000;">2</span> &nbsp; &nbsp; &nbsp;<span style="color: #000000;">1</span> &nbsp;<span style="color: #000000;">2</span> &nbsp;<span style="color: #000000;">3</span> &nbsp;<span style="color: #000000;">4</span> &nbsp;<span style="color: #000000;">5</span> &nbsp;<span style="color: #000000;">6</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">1</span> &nbsp;<span style="color: #000000;">2</span> &nbsp;<span style="color: #000000;">3</span> &nbsp;<span style="color: #000000;">4</span><br />
&nbsp;<span style="color: #000000;">3</span> &nbsp;<span style="color: #000000;">4</span> &nbsp;<span style="color: #000000;">5</span> &nbsp;<span style="color: #000000;">6</span> &nbsp;<span style="color: #000000;">7</span> &nbsp;<span style="color: #000000;">8</span> &nbsp;<span style="color: #000000;">9</span> &nbsp; <span style="color: #000000;">7</span> &nbsp;<span style="color: #000000;">8</span> &nbsp;<span style="color: #000000;">9</span> <span style="color: #000000;">10</span> <span style="color: #000000;">11</span> <span style="color: #000000;">12</span> <span style="color: #000000;">13</span> &nbsp; <span style="color: #000000;">5</span> &nbsp;<span style="color: #000000;">6</span> &nbsp;<span style="color: #000000;">7</span> &nbsp;<span style="color: #000000;">8</span> &nbsp;<span style="color: #000000;">9</span> <span style="color: #000000;">10</span> <span style="color: #000000;">11</span><br />
<span style="color: #000000;">10</span> <span style="color: #000000;">11</span> <span style="color: #000000;">12</span> <span style="color: #000000;">13</span> <span style="color: #000000;">14</span> <span style="color: #000000;">15</span> <span style="color: #000000;">16</span> &nbsp;<span style="color: #000000;">14</span> <span style="color: #000000;">15</span> <span style="color: #000000;">16</span> <span style="color: #000000;">17</span> <span style="color: #000000;">18</span> <span style="color: #000000;">19</span> <span style="color: #000000;">20</span> &nbsp;<span style="color: #000000;">12</span> <span style="color: #000000;">13</span> <span style="color: #000000;">14</span> <span style="color: #000000;">15</span> <span style="color: #000000;">16</span> <span style="color: #000000;">17</span> <span style="color: #000000;">18</span><br />
<span style="color: #000000;">17</span> <span style="color: #000000;">18</span> <span style="color: #000000;">19</span> <span style="color: #000000;">20</span> <span style="color: #000000;">21</span> <span style="color: #000000;">22</span> <span style="color: #000000;">23</span> &nbsp;<span style="color: #000000;">21</span> <span style="color: #000000;">22</span> <span style="color: #000000;">23</span> <span style="color: #000000;">24</span> <span style="color: #000000;">25</span> <span style="color: #000000;">26</span> <span style="color: #000000;">27</span> &nbsp;<span style="color: #000000;">19</span> <span style="color: #000000;">20</span> <span style="color: #000000;">21</span> <span style="color: #000000;">22</span> <span style="color: #000000;">23</span> <span style="color: #000000;">24</span> <span style="color: #000000;">25</span><br />
<span style="color: #000000;">24</span> <span style="color: #000000;">25</span> <span style="color: #000000;">26</span> <span style="color: #000000;">27</span> <span style="color: #000000;">28</span> <span style="color: #000000;">29</span> <span style="color: #000000;">30</span> &nbsp;<span style="color: #000000;">28</span> <span style="color: #000000;">29</span> <span style="color: #000000;">30</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">26</span> <span style="color: #000000;">27</span> <span style="color: #000000;">28</span> <span style="color: #000000;">29</span> <span style="color: #000000;">30</span> <span style="color: #000000;">31</span> &nbsp; <br />
<span style="color: #000000;">31</span></div></td></tr></tbody></table></div>
<hr />
Mira, ahora le puedes pegar una mona arriba y te montas un negocio de calendarios.</p>
<hr />
<p><center></p>
<div style="background-color:white;border:1px solid black">
<h1 style="color:black">Calendario 2011 &#8211; NomikOS Illustrated : US$9.99</h1>
<p><a href="http://nomikos.info/wp-content/uploads/2010/08/cosplay-girls01.jpg"><img src="http://nomikos.info/wp-content/uploads/2010/08/cosplay-girls01.jpg" alt="" title="cosplay-girls01" width="550" height="828" class="aligncenter size-full wp-image-1820" /></a></p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; &nbsp; &nbsp; January &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; February &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; March &nbsp; &nbsp; &nbsp; &nbsp;<br />
Su Mo Tu We Th Fr Sa &nbsp;Su Mo Tu We Th Fr Sa &nbsp;Su Mo Tu We Th Fr Sa<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">1</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">1</span> &nbsp;<span style="color: #000000;">2</span> &nbsp;<span style="color: #000000;">3</span> &nbsp;<span style="color: #000000;">4</span> &nbsp;<span style="color: #000000;">5</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">1</span> &nbsp;<span style="color: #000000;">2</span> &nbsp;<span style="color: #000000;">3</span> &nbsp;<span style="color: #000000;">4</span> &nbsp;<span style="color: #000000;">5</span><br />
&nbsp;<span style="color: #000000;">2</span> &nbsp;<span style="color: #000000;">3</span> &nbsp;<span style="color: #000000;">4</span> &nbsp;<span style="color: #000000;">5</span> &nbsp;<span style="color: #000000;">6</span> &nbsp;<span style="color: #000000;">7</span> &nbsp;<span style="color: #000000;">8</span> &nbsp; <span style="color: #000000;">6</span> &nbsp;<span style="color: #000000;">7</span> &nbsp;<span style="color: #000000;">8</span> &nbsp;<span style="color: #000000;">9</span> <span style="color: #000000;">10</span> <span style="color: #000000;">11</span> <span style="color: #000000;">12</span> &nbsp; <span style="color: #000000;">6</span> &nbsp;<span style="color: #000000;">7</span> &nbsp;<span style="color: #000000;">8</span> &nbsp;<span style="color: #000000;">9</span> <span style="color: #000000;">10</span> <span style="color: #000000;">11</span> <span style="color: #000000;">12</span><br />
&nbsp;<span style="color: #000000;">9</span> <span style="color: #000000;">10</span> <span style="color: #000000;">11</span> <span style="color: #000000;">12</span> <span style="color: #000000;">13</span> <span style="color: #000000;">14</span> <span style="color: #000000;">15</span> &nbsp;<span style="color: #000000;">13</span> <span style="color: #000000;">14</span> <span style="color: #000000;">15</span> <span style="color: #000000;">16</span> <span style="color: #000000;">17</span> <span style="color: #000000;">18</span> <span style="color: #000000;">19</span> &nbsp;<span style="color: #000000;">13</span> <span style="color: #000000;">14</span> <span style="color: #000000;">15</span> <span style="color: #000000;">16</span> <span style="color: #000000;">17</span> <span style="color: #000000;">18</span> <span style="color: #000000;">19</span><br />
<span style="color: #000000;">16</span> <span style="color: #000000;">17</span> <span style="color: #000000;">18</span> <span style="color: #000000;">19</span> <span style="color: #000000;">20</span> <span style="color: #000000;">21</span> <span style="color: #000000;">22</span> &nbsp;<span style="color: #000000;">20</span> <span style="color: #000000;">21</span> <span style="color: #000000;">22</span> <span style="color: #000000;">23</span> <span style="color: #000000;">24</span> <span style="color: #000000;">25</span> <span style="color: #000000;">26</span> &nbsp;<span style="color: #000000;">20</span> <span style="color: #000000;">21</span> <span style="color: #000000;">22</span> <span style="color: #000000;">23</span> <span style="color: #000000;">24</span> <span style="color: #000000;">25</span> <span style="color: #000000;">26</span><br />
<span style="color: #000000;">23</span> <span style="color: #000000;">24</span> <span style="color: #000000;">25</span> <span style="color: #000000;">26</span> <span style="color: #000000;">27</span> <span style="color: #000000;">28</span> <span style="color: #000000;">29</span> &nbsp;<span style="color: #000000;">27</span> <span style="color: #000000;">28</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">27</span> <span style="color: #000000;">28</span> <span style="color: #000000;">29</span> <span style="color: #000000;">30</span> <span style="color: #000000;">31</span> &nbsp; &nbsp; &nbsp;<br />
<span style="color: #000000;">30</span> <span style="color: #000000;">31</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp;April &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;May &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; June &nbsp; &nbsp; &nbsp; &nbsp;<br />
Su Mo Tu We Th Fr Sa &nbsp;Su Mo Tu We Th Fr Sa &nbsp;Su Mo Tu We Th Fr Sa<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">1</span> &nbsp;<span style="color: #000000;">2</span> &nbsp; <span style="color: #000000;">1</span> &nbsp;<span style="color: #000000;">2</span> &nbsp;<span style="color: #000000;">3</span> &nbsp;<span style="color: #000000;">4</span> &nbsp;<span style="color: #000000;">5</span> &nbsp;<span style="color: #000000;">6</span> &nbsp;<span style="color: #000000;">7</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">1</span> &nbsp;<span style="color: #000000;">2</span> &nbsp;<span style="color: #000000;">3</span> &nbsp;<span style="color: #000000;">4</span><br />
&nbsp;<span style="color: #000000;">3</span> &nbsp;<span style="color: #000000;">4</span> &nbsp;<span style="color: #000000;">5</span> &nbsp;<span style="color: #000000;">6</span> &nbsp;<span style="color: #000000;">7</span> &nbsp;<span style="color: #000000;">8</span> &nbsp;<span style="color: #000000;">9</span> &nbsp; <span style="color: #000000;">8</span> &nbsp;<span style="color: #000000;">9</span> <span style="color: #000000;">10</span> <span style="color: #000000;">11</span> <span style="color: #000000;">12</span> <span style="color: #000000;">13</span> <span style="color: #000000;">14</span> &nbsp; <span style="color: #000000;">5</span> &nbsp;<span style="color: #000000;">6</span> &nbsp;<span style="color: #000000;">7</span> &nbsp;<span style="color: #000000;">8</span> &nbsp;<span style="color: #000000;">9</span> <span style="color: #000000;">10</span> <span style="color: #000000;">11</span><br />
<span style="color: #000000;">10</span> <span style="color: #000000;">11</span> <span style="color: #000000;">12</span> <span style="color: #000000;">13</span> <span style="color: #000000;">14</span> <span style="color: #000000;">15</span> <span style="color: #000000;">16</span> &nbsp;<span style="color: #000000;">15</span> <span style="color: #000000;">16</span> <span style="color: #000000;">17</span> <span style="color: #000000;">18</span> <span style="color: #000000;">19</span> <span style="color: #000000;">20</span> <span style="color: #000000;">21</span> &nbsp;<span style="color: #000000;">12</span> <span style="color: #000000;">13</span> <span style="color: #000000;">14</span> <span style="color: #000000;">15</span> <span style="color: #000000;">16</span> <span style="color: #000000;">17</span> <span style="color: #000000;">18</span><br />
<span style="color: #000000;">17</span> <span style="color: #000000;">18</span> <span style="color: #000000;">19</span> <span style="color: #000000;">20</span> <span style="color: #000000;">21</span> <span style="color: #000000;">22</span> <span style="color: #000000;">23</span> &nbsp;<span style="color: #000000;">22</span> <span style="color: #000000;">23</span> <span style="color: #000000;">24</span> <span style="color: #000000;">25</span> <span style="color: #000000;">26</span> <span style="color: #000000;">27</span> <span style="color: #000000;">28</span> &nbsp;<span style="color: #000000;">19</span> <span style="color: #000000;">20</span> <span style="color: #000000;">21</span> <span style="color: #000000;">22</span> <span style="color: #000000;">23</span> <span style="color: #000000;">24</span> <span style="color: #000000;">25</span><br />
<span style="color: #000000;">24</span> <span style="color: #000000;">25</span> <span style="color: #000000;">26</span> <span style="color: #000000;">27</span> <span style="color: #000000;">28</span> <span style="color: #000000;">29</span> <span style="color: #000000;">30</span> &nbsp;<span style="color: #000000;">29</span> <span style="color: #000000;">30</span> <span style="color: #000000;">31</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">26</span> <span style="color: #000000;">27</span> <span style="color: #000000;">28</span> <span style="color: #000000;">29</span> <span style="color: #000000;">30</span> &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; July &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; August &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;September &nbsp; &nbsp; &nbsp;<br />
Su Mo Tu We Th Fr Sa &nbsp;Su Mo Tu We Th Fr Sa &nbsp;Su Mo Tu We Th Fr Sa<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">1</span> &nbsp;<span style="color: #000000;">2</span> &nbsp; &nbsp; &nbsp;<span style="color: #000000;">1</span> &nbsp;<span style="color: #000000;">2</span> &nbsp;<span style="color: #000000;">3</span> &nbsp;<span style="color: #000000;">4</span> &nbsp;<span style="color: #000000;">5</span> &nbsp;<span style="color: #000000;">6</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">1</span> &nbsp;<span style="color: #000000;">2</span> &nbsp;<span style="color: #000000;">3</span><br />
&nbsp;<span style="color: #000000;">3</span> &nbsp;<span style="color: #000000;">4</span> &nbsp;<span style="color: #000000;">5</span> &nbsp;<span style="color: #000000;">6</span> &nbsp;<span style="color: #000000;">7</span> &nbsp;<span style="color: #000000;">8</span> &nbsp;<span style="color: #000000;">9</span> &nbsp; <span style="color: #000000;">7</span> &nbsp;<span style="color: #000000;">8</span> &nbsp;<span style="color: #000000;">9</span> <span style="color: #000000;">10</span> <span style="color: #000000;">11</span> <span style="color: #000000;">12</span> <span style="color: #000000;">13</span> &nbsp; <span style="color: #000000;">4</span> &nbsp;<span style="color: #000000;">5</span> &nbsp;<span style="color: #000000;">6</span> &nbsp;<span style="color: #000000;">7</span> &nbsp;<span style="color: #000000;">8</span> &nbsp;<span style="color: #000000;">9</span> <span style="color: #000000;">10</span><br />
<span style="color: #000000;">10</span> <span style="color: #000000;">11</span> <span style="color: #000000;">12</span> <span style="color: #000000;">13</span> <span style="color: #000000;">14</span> <span style="color: #000000;">15</span> <span style="color: #000000;">16</span> &nbsp;<span style="color: #000000;">14</span> <span style="color: #000000;">15</span> <span style="color: #000000;">16</span> <span style="color: #000000;">17</span> <span style="color: #000000;">18</span> <span style="color: #000000;">19</span> <span style="color: #000000;">20</span> &nbsp;<span style="color: #000000;">11</span> <span style="color: #000000;">12</span> <span style="color: #000000;">13</span> <span style="color: #000000;">14</span> <span style="color: #000000;">15</span> <span style="color: #000000;">16</span> <span style="color: #000000;">17</span><br />
<span style="color: #000000;">17</span> <span style="color: #000000;">18</span> <span style="color: #000000;">19</span> <span style="color: #000000;">20</span> <span style="color: #000000;">21</span> <span style="color: #000000;">22</span> <span style="color: #000000;">23</span> &nbsp;<span style="color: #000000;">21</span> <span style="color: #000000;">22</span> <span style="color: #000000;">23</span> <span style="color: #000000;">24</span> <span style="color: #000000;">25</span> <span style="color: #000000;">26</span> <span style="color: #000000;">27</span> &nbsp;<span style="color: #000000;">18</span> <span style="color: #000000;">19</span> <span style="color: #000000;">20</span> <span style="color: #000000;">21</span> <span style="color: #000000;">22</span> <span style="color: #000000;">23</span> <span style="color: #000000;">24</span><br />
<span style="color: #000000;">24</span> <span style="color: #000000;">25</span> <span style="color: #000000;">26</span> <span style="color: #000000;">27</span> <span style="color: #000000;">28</span> <span style="color: #000000;">29</span> <span style="color: #000000;">30</span> &nbsp;<span style="color: #000000;">28</span> <span style="color: #000000;">29</span> <span style="color: #000000;">30</span> <span style="color: #000000;">31</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">25</span> <span style="color: #000000;">26</span> <span style="color: #000000;">27</span> <span style="color: #000000;">28</span> <span style="color: #000000;">29</span> <span style="color: #000000;">30</span> &nbsp; <br />
<span style="color: #000000;">31</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; October &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; November &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;December &nbsp; &nbsp; &nbsp;<br />
Su Mo Tu We Th Fr Sa &nbsp;Su Mo Tu We Th Fr Sa &nbsp;Su Mo Tu We Th Fr Sa<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">1</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">1</span> &nbsp;<span style="color: #000000;">2</span> &nbsp;<span style="color: #000000;">3</span> &nbsp;<span style="color: #000000;">4</span> &nbsp;<span style="color: #000000;">5</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">1</span> &nbsp;<span style="color: #000000;">2</span> &nbsp;<span style="color: #000000;">3</span><br />
&nbsp;<span style="color: #000000;">2</span> &nbsp;<span style="color: #000000;">3</span> &nbsp;<span style="color: #000000;">4</span> &nbsp;<span style="color: #000000;">5</span> &nbsp;<span style="color: #000000;">6</span> &nbsp;<span style="color: #000000;">7</span> &nbsp;<span style="color: #000000;">8</span> &nbsp; <span style="color: #000000;">6</span> &nbsp;<span style="color: #000000;">7</span> &nbsp;<span style="color: #000000;">8</span> &nbsp;<span style="color: #000000;">9</span> <span style="color: #000000;">10</span> <span style="color: #000000;">11</span> <span style="color: #000000;">12</span> &nbsp; <span style="color: #000000;">4</span> &nbsp;<span style="color: #000000;">5</span> &nbsp;<span style="color: #000000;">6</span> &nbsp;<span style="color: #000000;">7</span> &nbsp;<span style="color: #000000;">8</span> &nbsp;<span style="color: #000000;">9</span> <span style="color: #000000;">10</span><br />
&nbsp;<span style="color: #000000;">9</span> <span style="color: #000000;">10</span> <span style="color: #000000;">11</span> <span style="color: #000000;">12</span> <span style="color: #000000;">13</span> <span style="color: #000000;">14</span> <span style="color: #000000;">15</span> &nbsp;<span style="color: #000000;">13</span> <span style="color: #000000;">14</span> <span style="color: #000000;">15</span> <span style="color: #000000;">16</span> <span style="color: #000000;">17</span> <span style="color: #000000;">18</span> <span style="color: #000000;">19</span> &nbsp;<span style="color: #000000;">11</span> <span style="color: #000000;">12</span> <span style="color: #000000;">13</span> <span style="color: #000000;">14</span> <span style="color: #000000;">15</span> <span style="color: #000000;">16</span> <span style="color: #000000;">17</span><br />
<span style="color: #000000;">16</span> <span style="color: #000000;">17</span> <span style="color: #000000;">18</span> <span style="color: #000000;">19</span> <span style="color: #000000;">20</span> <span style="color: #000000;">21</span> <span style="color: #000000;">22</span> &nbsp;<span style="color: #000000;">20</span> <span style="color: #000000;">21</span> <span style="color: #000000;">22</span> <span style="color: #000000;">23</span> <span style="color: #000000;">24</span> <span style="color: #000000;">25</span> <span style="color: #000000;">26</span> &nbsp;<span style="color: #000000;">18</span> <span style="color: #000000;">19</span> <span style="color: #000000;">20</span> <span style="color: #000000;">21</span> <span style="color: #000000;">22</span> <span style="color: #000000;">23</span> <span style="color: #000000;">24</span><br />
<span style="color: #000000;">23</span> <span style="color: #000000;">24</span> <span style="color: #000000;">25</span> <span style="color: #000000;">26</span> <span style="color: #000000;">27</span> <span style="color: #000000;">28</span> <span style="color: #000000;">29</span> &nbsp;<span style="color: #000000;">27</span> <span style="color: #000000;">28</span> <span style="color: #000000;">29</span> <span style="color: #000000;">30</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">25</span> <span style="color: #000000;">26</span> <span style="color: #000000;">27</span> <span style="color: #000000;">28</span> <span style="color: #000000;">29</span> <span style="color: #000000;">30</span> <span style="color: #000000;">31</span><br />
<span style="color: #000000;">30</span> <span style="color: #000000;">31</span></div></div>
</div>
<p></center></p>
]]></content:encoded>
			<wfw:commentRss>http://nomikos.info/2010/08/12/comandos-linux-cal-calendario.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Sobreescribiendo archivos de sólo lectura en vi.</title>
		<link>http://nomikos.info/2010/06/05/sobreescribiendo-archivos-de-solo-lectura-en-vi.html</link>
		<comments>http://nomikos.info/2010/06/05/sobreescribiendo-archivos-de-solo-lectura-en-vi.html#comments</comments>
		<pubDate>Sat, 05 Jun 2010 20:40:33 +0000</pubDate>
		<dc:creator>NomikOS</dc:creator>
				<category><![CDATA[Comandos]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://nomikos.info/?p=1373</guid>
		<description><![CDATA[Esto es muy común. Estar editando un archivo en vi &#8211;o tal vez en cualquier otro editor de consola&#8211; y cuando vas a guardar simplemente se te prohíbe. Cuando ya pasa varias veces las imprecaciones ya no sirven de nada y empiezas a buscar una solución. Una vez lo hice y proponían unos manejos tan [...]


Posts relacionados:<ol><li><a href='http://nomikos.info/2009/08/01/chmod-modificacion-de-accesos-a-un-archivo.html' rel='bookmark' title='Permanent Link: Comando chmod &#8211; Modificación de accesos a un archivo.'>Comando chmod &#8211; Modificación de accesos a un archivo.</a></li>
<li><a href='http://nomikos.info/2009/08/18/chmod-avanzado.html' rel='bookmark' title='Permanent Link: Comando chmod -R (recursivo) en directorios y archivos por separado.'>Comando chmod -R (recursivo) en directorios y archivos por separado.</a></li>
<li><a href='http://nomikos.info/2009/03/01/recuperacion-de-archivos-borrados-en-linux-y-como-convertir-un-sistema-de-archivos-ufs-de-ext3-a-ext2.html' rel='bookmark' title='Permanent Link: Recuperación de archivos borrados en linux y cómo convertir un sistema de archivos UFS de ext3 a ext2.'>Recuperación de archivos borrados en linux y cómo convertir un sistema de archivos UFS de ext3 a ext2.</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Esto es muy común. Estar editando un archivo en <em>vi</em> &#8211;o tal vez en cualquier otro editor de consola&#8211; y cuando vas a guardar simplemente se te prohíbe. Cuando ya pasa varias veces las imprecaciones ya no sirven de nada y empiezas a buscar una solución. Una vez lo hice y proponían unos manejos tan complicados que simplemente me dije que mejor sería tener cuidado de no volver a caer en la misma situación y usar siempre <em>sudo</em> antes de editar algún archivo que no fuera mío (de configuración principalmente). </p>
<p><a href="http://nomikos.info/wp-content/uploads/2010/06/read-only-in-vim.png"><img src="http://nomikos.info/wp-content/uploads/2010/06/read-only-in-vim.png" alt="" title="read-only-in-vim" width="632" height="381" class="aligncenter size-full wp-image-1375" /></a></p>
<p>Pues no, siempre termina ocurriendo otra vez! Casi sin darme cuenta empecé a rodear el problema de una manera &#8211;ahora obvia&#8211; sencilla y rápida.</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;"># en la última línea de vi aparece algo así:</span><br />
<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>php5<span style="color: #000000; font-weight: bold;">/</span>conf.d<span style="color: #000000; font-weight: bold;">/</span>xdebug.ini<span style="color: #7a0874; font-weight: bold;">&#91;</span>+<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span>RO<span style="color: #7a0874; font-weight: bold;">&#93;</span><br />
E45: <span style="color: #ff0000;">'readonly'</span> option is <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>add <span style="color: #000000; font-weight: bold;">!</span> to override<span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
<span style="color: #666666; font-style: italic;"># o algo así:</span><br />
<span style="color: #ff0000;">&quot;/etc/php5/conf.d/xdebug.ini&quot;</span> E212: Can t open <span style="color: #c20cb9; font-weight: bold;">file</span> <span style="color: #000000; font-weight: bold;">for</span> writing<br />
<br />
<span style="color: #666666; font-style: italic;"># interrumpe el programa con [CTRL-z] y mira que permisos hay</span><br />
$ ll <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>php5<span style="color: #000000; font-weight: bold;">/</span>conf.d<span style="color: #000000; font-weight: bold;">/</span>xdebug.ini <br />
<span style="color: #660033;">-rw-r--r--</span> <span style="color: #000000;">1</span> root root <span style="color: #000000;">309</span> <span style="color: #000000;">2010</span>-06-05 <span style="color: #000000;">16</span>:08 <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>php5<span style="color: #000000; font-weight: bold;">/</span>conf.d<span style="color: #000000; font-weight: bold;">/</span>xdebug.ini<br />
<br />
<span style="color: #666666; font-style: italic;"># da permisos de escritura a otros (o según corresponda)</span><br />
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">chmod</span> o+<span style="color: #c20cb9; font-weight: bold;">w</span> &nbsp;<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>php5<span style="color: #000000; font-weight: bold;">/</span>conf.d<span style="color: #000000; font-weight: bold;">/</span>xdebug.ini<br />
<br />
<span style="color: #666666; font-style: italic;"># vuelve a vi con fg y guarda y sale como de costumbre :wq o :wq!</span><br />
$ <span style="color: #7a0874; font-weight: bold;">fg</span><br />
<br />
<span style="color: #666666; font-style: italic;"># vuelve a dejar los permisos como estaban</span><br />
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">chmod</span> o-w &nbsp;<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>php5<span style="color: #000000; font-weight: bold;">/</span>conf.d<span style="color: #000000; font-weight: bold;">/</span>xdebug.ini</div></td></tr></tbody></table></div>
<p>Comando fg: <a target="_blank" href="http://www.computerhope.com/unix/ufg.htm">http://www.computerhope.com/unix/ufg.htm</a></p>


<p>Posts relacionados:<ol><li><a href='http://nomikos.info/2009/08/01/chmod-modificacion-de-accesos-a-un-archivo.html' rel='bookmark' title='Permanent Link: Comando chmod &#8211; Modificación de accesos a un archivo.'>Comando chmod &#8211; Modificación de accesos a un archivo.</a></li>
<li><a href='http://nomikos.info/2009/08/18/chmod-avanzado.html' rel='bookmark' title='Permanent Link: Comando chmod -R (recursivo) en directorios y archivos por separado.'>Comando chmod -R (recursivo) en directorios y archivos por separado.</a></li>
<li><a href='http://nomikos.info/2009/03/01/recuperacion-de-archivos-borrados-en-linux-y-como-convertir-un-sistema-de-archivos-ufs-de-ext3-a-ext2.html' rel='bookmark' title='Permanent Link: Recuperación de archivos borrados en linux y cómo convertir un sistema de archivos UFS de ext3 a ext2.'>Recuperación de archivos borrados en linux y cómo convertir un sistema de archivos UFS de ext3 a ext2.</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://nomikos.info/2010/06/05/sobreescribiendo-archivos-de-solo-lectura-en-vi.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Script para borrar todos los procesos generados por el comando at.</title>
		<link>http://nomikos.info/2010/05/30/script-para-borrar-todos-los-procesos-generados-por-el-comando-at.html</link>
		<comments>http://nomikos.info/2010/05/30/script-para-borrar-todos-los-procesos-generados-por-el-comando-at.html#comments</comments>
		<pubDate>Sun, 30 May 2010 22:46:07 +0000</pubDate>
		<dc:creator>NomikOS</dc:creator>
				<category><![CDATA[Bash]]></category>
		<category><![CDATA[Comandos]]></category>

		<guid isPermaLink="false">http://nomikos.info/?p=1125</guid>
		<description><![CDATA[123456#!/bin/bash for job in $&#40;atq &#124; awk '{print $1}'&#41; do atrm $job done Fuente: http://ubuntuforums.org/showthread.php?t=714439 Posts relacionados:Script para borrar una línea o sustituir texto en varios archivos usando sed. Script para copiar archivos modificados en un día específico. Comando chmod -R (recursivo) en directorios y archivos por separado.


Posts relacionados:<ol><li><a href='http://nomikos.info/2010/05/23/script-para-borrar-una-linea-o-sustituir-texto-en-varios-archivos-usando-sed.html' rel='bookmark' title='Permanent Link: Script para borrar una línea o sustituir texto en varios archivos usando sed.'>Script para borrar una línea o sustituir texto en varios archivos usando sed.</a></li>
<li><a href='http://nomikos.info/2010/06/07/script-para-copiar-archivos-modificados-en-un-dia-especifico.html' rel='bookmark' title='Permanent Link: Script para copiar archivos modificados en un día específico.'>Script para copiar archivos modificados en un día específico.</a></li>
<li><a href='http://nomikos.info/2009/08/18/chmod-avanzado.html' rel='bookmark' title='Permanent Link: Comando chmod -R (recursivo) en directorios y archivos por separado.'>Comando chmod -R (recursivo) en directorios y archivos por separado.</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">#!/bin/bash</span><br />
<br />
<span style="color: #000000; font-weight: bold;">for</span> job <span style="color: #000000; font-weight: bold;">in</span> $<span style="color: #7a0874; font-weight: bold;">&#40;</span>atq <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{print $1}'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
<span style="color: #000000; font-weight: bold;">do</span><br />
atrm <span style="color: #007800;">$job</span><br />
<span style="color: #000000; font-weight: bold;">done</span></div></td></tr></tbody></table></div>
<p>Fuente: <a target="_blank" href="http://ubuntuforums.org/showthread.php?t=714439">http://ubuntuforums.org/showthread.php?t=714439</a></p>


<p>Posts relacionados:<ol><li><a href='http://nomikos.info/2010/05/23/script-para-borrar-una-linea-o-sustituir-texto-en-varios-archivos-usando-sed.html' rel='bookmark' title='Permanent Link: Script para borrar una línea o sustituir texto en varios archivos usando sed.'>Script para borrar una línea o sustituir texto en varios archivos usando sed.</a></li>
<li><a href='http://nomikos.info/2010/06/07/script-para-copiar-archivos-modificados-en-un-dia-especifico.html' rel='bookmark' title='Permanent Link: Script para copiar archivos modificados en un día específico.'>Script para copiar archivos modificados en un día específico.</a></li>
<li><a href='http://nomikos.info/2009/08/18/chmod-avanzado.html' rel='bookmark' title='Permanent Link: Comando chmod -R (recursivo) en directorios y archivos por separado.'>Comando chmod -R (recursivo) en directorios y archivos por separado.</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://nomikos.info/2010/05/30/script-para-borrar-todos-los-procesos-generados-por-el-comando-at.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Comando most en linux.</title>
		<link>http://nomikos.info/2010/05/27/comando-most-en-linux.html</link>
		<comments>http://nomikos.info/2010/05/27/comando-most-en-linux.html#comments</comments>
		<pubDate>Thu, 27 May 2010 15:20:33 +0000</pubDate>
		<dc:creator>NomikOS</dc:creator>
				<category><![CDATA[Comandos]]></category>

		<guid isPermaLink="false">http://nomikos.info/?p=1032</guid>
		<description><![CDATA[most es un visor para cualquier tipo de archivos incluso binarios. Prueba a hacer 123$ cat /bin/ls # y luego $ most /bin/ls gran diferencia, verdad? es el visor predeterminado para revisar las páginas de manual de un sistema unix. 1man man Y también en midnight commander. 123456789# ~/.mc/bindings ... &#160; 678 ### Default ### [...]


Posts relacionados:<ol><li><a href='http://nomikos.info/2009/04/29/uso-de-comando-mail-en-linux.html' rel='bookmark' title='Permanent Link: Uso de comando mail en linux.'>Uso de comando mail en linux.</a></li>
<li><a href='http://nomikos.info/2009/08/01/chmod-modificacion-de-accesos-a-un-archivo.html' rel='bookmark' title='Permanent Link: Comando chmod &#8211; Modificación de accesos a un archivo.'>Comando chmod &#8211; Modificación de accesos a un archivo.</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><em>most</em> es un visor para cualquier tipo de archivos incluso binarios. Prueba a hacer</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">ls</span><br />
<span style="color: #666666; font-style: italic;"># y luego </span><br />
$ most <span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">ls</span></div></td></tr></tbody></table></div>
<p>gran diferencia, verdad? es el visor predeterminado para revisar las páginas de manual de un sistema unix.</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">man</span> <span style="color: #c20cb9; font-weight: bold;">man</span></div></td></tr></tbody></table></div>
<p>Y también en <a href="http://nomikos.info/2009/05/30/uso-del-administrador-de-archivos-midnight-commander-y-gnome-commander-en-linux-tutorial.html">midnight commander</a>.</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;"># ~/.mc/bindings</span><br />
...<br />
&nbsp; <span style="color: #000000;">678</span> <span style="color: #666666; font-style: italic;">### Default ###</span><br />
&nbsp; <span style="color: #000000;">679</span> <br />
&nbsp; <span style="color: #000000;">680</span> <span style="color: #666666; font-style: italic;"># Default target for anything not described above</span><br />
&nbsp; <span style="color: #000000;">681</span> default<span style="color: #000000; font-weight: bold;">/*</span><br />
&nbsp; <span style="color: #000000;">682</span> &nbsp; &nbsp; <span style="color: #007800;">Open</span>=<br />
&nbsp; <span style="color: #000000;">683</span> &nbsp; &nbsp; <span style="color: #007800;">View</span>= <span style="color: #666666; font-style: italic;"># (si no definimos nada aquí, usará most)</span><br />
...</div></td></tr></tbody></table></div>
<p>Y seguramente lo tienes definido como tu <em>pager</em> por defecto en tu archivo .bashrc</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">PAGER</span>=<span style="color: #ff0000;">&quot;most&quot;</span></div></td></tr></tbody></table></div>
<p>Fíjate que en la parte inferior muestra el porcentaje del archivo que estas viendo. Reencachado. Bueno lo que me trae a escribir esto es algo me tomó un buen rato encontrar &#8211;la verdad es que la solución se encuentra en la penúltima línea de ayuda del comando.</p>
<p>Cuando estás viendo algo con <em>most</em> la última línea dice clarito:</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Press <span style="color: #000000; font-weight: bold;">`</span>Q<span style="color: #ff0000;">' to quit, `H'</span> <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #7a0874; font-weight: bold;">help</span>, and SPACE to scroll.</div></td></tr></tbody></table></div>
<p>Con H muestra una ayuda super clara y concisa; aún así tenían que poner lo quería saber casi al final! Como hacer wrap (que es el arte de continuar en una nueva línea cuando la línea está llena, cresta&#8230; si hasta wikipedia le cuesta explicar que güa es <a target="_blank" href="http://en.wikipedia.org/wiki/Word_wrap">wrap</a>)</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">... bla bla ...<br />
Miscellaneous:<br />
<br />
&nbsp; W &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Toggle width between <span style="color: #000000;">80</span> and <span style="color: #000000;">132</span> char mode.<br />
&nbsp; Ctrl-X Ctrl-F &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Read a <span style="color: #c20cb9; font-weight: bold;">file</span> from disk<br />
&nbsp; R, Ctrl-R &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Redraw Screen.<br />
&nbsp; F &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Simulate <span style="color: #c20cb9; font-weight: bold;">tail</span> <span style="color: #660033;">-f</span> mode<br />
&nbsp; :o &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Toggle options: &nbsp;b-binary, w-wrap, t-tab<br />
&nbsp; E &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Edit file. &nbsp;Uses MOST_EDITOR and EDITOR<br />
Press any key to continue.</div></td></tr></tbody></table></div>
<p>ahí está:</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">:ow</div></td></tr></tbody></table></div>
<p>por san guchito! que manera de sacar la vuelta!!!</p>


<p>Posts relacionados:<ol><li><a href='http://nomikos.info/2009/04/29/uso-de-comando-mail-en-linux.html' rel='bookmark' title='Permanent Link: Uso de comando mail en linux.'>Uso de comando mail en linux.</a></li>
<li><a href='http://nomikos.info/2009/08/01/chmod-modificacion-de-accesos-a-un-archivo.html' rel='bookmark' title='Permanent Link: Comando chmod &#8211; Modificación de accesos a un archivo.'>Comando chmod &#8211; Modificación de accesos a un archivo.</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://nomikos.info/2010/05/27/comando-most-en-linux.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Listando directorios con tree (sin olvidar a midnight-commander) en la línea de comandos.</title>
		<link>http://nomikos.info/2010/05/25/listando-directorios-con-tree-sin-olvidar-a-midnight-commander-en-la-linea-de-comandos.html</link>
		<comments>http://nomikos.info/2010/05/25/listando-directorios-con-tree-sin-olvidar-a-midnight-commander-en-la-linea-de-comandos.html#comments</comments>
		<pubDate>Tue, 25 May 2010 17:54:50 +0000</pubDate>
		<dc:creator>NomikOS</dc:creator>
				<category><![CDATA[Comandos]]></category>

		<guid isPermaLink="false">http://nomikos.info/?p=1001</guid>
		<description><![CDATA[Cuando te encuentras en la linea de comando a menudo necesitas ver la estructura de un directorio. Midnight commander Para esto nada mejor que usar midnight commander tipeando mc que te provee un fabuloso navegador de archivos &#8211;y que por su velocidad en FTP/SFTP en obligatorio al trabajar sobre cuentas de clientes. Comando tree Aún [...]


Posts relacionados:<ol><li><a href='http://nomikos.info/2009/05/30/uso-del-administrador-de-archivos-midnight-commander-y-gnome-commander-en-linux-tutorial.html' rel='bookmark' title='Permanent Link: Uso del administrador de archivos &#8220;midnight-commander&#8221; y &#8220;gnome-commander&#8221; en linux &#8211; Tutorial.'>Uso del administrador de archivos &#8220;midnight-commander&#8221; y &#8220;gnome-commander&#8221; en linux &#8211; Tutorial.</a></li>
<li><a href='http://nomikos.info/2010/06/05/midnight-commander-%e2%80%93-login-automatico-en-ftp.html' rel='bookmark' title='Permanent Link: midnight-commander – login automático en FTP usando .netrc'>midnight-commander – login automático en FTP usando .netrc</a></li>
<li><a href='http://nomikos.info/2009/08/18/chmod-avanzado.html' rel='bookmark' title='Permanent Link: Comando chmod -R (recursivo) en directorios y archivos por separado.'>Comando chmod -R (recursivo) en directorios y archivos por separado.</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Cuando te encuentras en la linea de comando a menudo necesitas ver la estructura de un directorio.</p>
<p><a href="http://nomikos.info/wp-content/uploads/2010/05/midnight-commander-and-tree.png"><img src="http://nomikos.info/wp-content/uploads/2010/05/midnight-commander-and-tree-300x253.png" alt="" title="midnight-commander y comando tree" width="300" height="253" class="size-medium wp-image-1013" /></a></p>
<p><b>Midnight commander</b></p>
<p>Para esto nada mejor que usar <a href="http://nomikos.info/2009/05/30/uso-del-administrador-de-archivos-midnight-commander-y-gnome-commander-en-linux-tutorial.html">midnight commander</a> tipeando <em>mc</em> que te provee un fabuloso navegador de archivos &#8211;y que por su velocidad en FTP/SFTP en obligatorio al trabajar sobre cuentas de clientes. </p>
<p><b>Comando tree</b></p>
<p>Aún así si sólo se trata de echar un rápido vistazo el comando tree es el indicado. Ls opciones más importantes son:</p>
<div class="codecolorer-container text blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">-L n: muestra hasta el nivel n de profundidad<br />
-d: sólo muestra directorios<br />
-a: muestra todos los archivos (incluye ocultos)</div></td></tr></tbody></table></div>
<p><b>Ejemplos:</b>
<div class="codecolorer-container php blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br />49<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;"># reenviar a less no es necesario pero ayuda a navegar arriba y abajo<br />
</span><span style="color: #666666; font-style: italic;"># en salidas largas. usa q para salir de less.<br />
</span>$ tree <span style="color: #339933;">-</span>L <span style="color: #cc66cc;">3</span> <span style="color: #339933;">-</span>a <span style="color: #339933;">|</span> less<br />
<span style="color: #339933;">.</span><br />
<span style="color: #339933;">|--</span> F<span style="color: #339933;">.</span>E<span style="color: #339933;">.</span>A<span style="color: #339933;">.</span>R ISO<br />
<span style="color: #339933;">|</span> &nbsp; <span style="color: #339933;">|--</span> F<span style="color: #339933;">.</span>E<span style="color: #339933;">.</span>A<span style="color: #339933;">.</span>R<span style="color: #339933;">.</span>ALL<span style="color: #339933;">.</span>IND<span style="color: #339933;">.</span>PUBLICSERVERFIX<span style="color: #339933;">.</span>ZIP<br />
<span style="color: #339933;">|</span> &nbsp; <span style="color: #339933;">|--</span> F<span style="color: #339933;">.</span>E<span style="color: #339933;">.</span>A<span style="color: #339933;">.</span>R<span style="color: #339933;">.</span>PLUS3TRN<span style="color: #339933;">.</span>DROLLE<span style="color: #339933;">.</span>ZIP<br />
<span style="color: #339933;">|</span> &nbsp; <span style="color: #339933;">|--</span> F<span style="color: #339933;">.</span>E<span style="color: #339933;">.</span>A<span style="color: #339933;">.</span>R<span style="color: #339933;">.</span>PLUS3TRN<span style="color: #339933;">.</span>SKOSSINO<span style="color: #339933;">.</span>ZIP<br />
<span style="color: #339933;">|</span> &nbsp; <span style="color: #339933;">|--</span> F<span style="color: #339933;">.</span>E<span style="color: #339933;">.</span>A<span style="color: #339933;">.</span>R<span style="color: #339933;">.</span>V1<span style="color: #339933;">.</span>08<span style="color: #339933;">.</span>ENG<span style="color: #339933;">.</span>MACIOZO<span style="color: #339933;">.</span>NOCD<span style="color: #339933;">.</span>ZIP<br />
<span style="color: #339933;">|</span> &nbsp; <span style="color: #339933;">|--</span> FEAR<span style="color: #339933;">.</span>mdf<br />
<span style="color: #339933;">|</span> &nbsp; <span style="color: #339933;">|--</span> FEAR<span style="color: #339933;">.</span>mds<br />
<span style="color: #339933;">|</span> &nbsp; <span style="color: #339933;">|--</span> fear_update_engb_100_107_108<span style="color: #339933;">.</span>exe<br />
<span style="color: #339933;">|</span> &nbsp; <span style="color: #339933;">|--</span> fearclone<span style="color: #339933;">.</span>sfv<br />
<span style="color: #339933;">|</span> &nbsp; `<span style="color: #339933;">--</span> serial<span style="color: #339933;">.</span>txt<br />
<span style="color: #339933;">|--</span> Introducing Small Basic<span style="color: #339933;">.</span>pdf<br />
<span style="color: #339933;">|--</span> less<br />
<span style="color: #339933;">|--</span> test<br />
<span style="color: #339933;">|</span> &nbsp; <span style="color: #339933;">|--</span> <span style="color: #339933;">.</span>htaccess <span style="color: #666666; font-style: italic;">// archivo oculto</span><br />
<span style="color: #339933;">|</span> &nbsp; `<span style="color: #339933;">--</span> tora<br />
<span style="color: #339933;">|--</span> tmp<br />
<span style="color: #339933;">|</span> &nbsp; <span style="color: #339933;">|--</span> bp<span style="color: #339933;">-</span>group<span style="color: #339933;">-</span>management<br />
<span style="color: #339933;">|</span> &nbsp; <span style="color: #339933;">|</span> &nbsp; <span style="color: #339933;">|--</span> bp<span style="color: #339933;">-</span>group<span style="color: #339933;">-</span>management<span style="color: #339933;">-</span>aux<span style="color: #339933;">.</span>php<br />
<span style="color: #339933;">|</span> &nbsp; <span style="color: #339933;">|</span> &nbsp; <span style="color: #339933;">|--</span> bp<span style="color: #339933;">-</span>group<span style="color: #339933;">-</span>management<span style="color: #339933;">-</span>bp<span style="color: #339933;">-</span>functions<span style="color: #339933;">.</span>php<br />
<span style="color: #339933;">|</span> &nbsp; <span style="color: #339933;">|</span> &nbsp; <span style="color: #339933;">|--</span> bp<span style="color: #339933;">-</span>group<span style="color: #339933;">-</span>management<span style="color: #339933;">-</span>css<span style="color: #339933;">.</span>css<br />
<span style="color: #339933;">|</span> &nbsp; <span style="color: #339933;">|</span> &nbsp; <span style="color: #339933;">|--</span> bp<span style="color: #339933;">-</span>group<span style="color: #339933;">-</span>management<span style="color: #339933;">.</span>php<br />
<span style="color: #339933;">|</span> &nbsp; <span style="color: #339933;">|</span> &nbsp; <span style="color: #339933;">|--</span> bp<span style="color: #339933;">-</span>group<span style="color: #339933;">-</span>management<span style="color: #339933;">.</span>pot<br />
<span style="color: #339933;">|</span> &nbsp; <span style="color: #339933;">|</span> &nbsp; <span style="color: #339933;">|--</span> languages<br />
<span style="color: #339933;">|</span> &nbsp; <span style="color: #339933;">|</span> &nbsp; `<span style="color: #339933;">--</span> readme<span style="color: #339933;">.</span>txt<br />
<span style="color: #339933;">...</span> etc <span style="color: #339933;">...</span><br />
<span style="color: #cc66cc;">12</span> directories<span style="color: #339933;">,</span> <span style="color: #cc66cc;">40</span> files<br />
<br />
<span style="color: #666666; font-style: italic;"># ahora sólo hasta los directorios hijos<br />
</span>$ tree <span style="color: #339933;">-</span>L <span style="color: #cc66cc;">2</span> <span style="color: #339933;">-</span>d <span style="color: #339933;">|</span> less<br />
<span style="color: #339933;">.</span><br />
<span style="color: #339933;">|--</span> F<span style="color: #339933;">.</span>E<span style="color: #339933;">.</span>A<span style="color: #339933;">.</span>R ISO<br />
<span style="color: #339933;">|--</span> test<br />
<span style="color: #339933;">|</span> &nbsp; `<span style="color: #339933;">--</span> tora<br />
<span style="color: #339933;">|--</span> tmp<br />
<span style="color: #339933;">|</span> &nbsp; <span style="color: #339933;">|--</span> bp<span style="color: #339933;">-</span>group<span style="color: #339933;">-</span>management<br />
<span style="color: #339933;">|</span> &nbsp; <span style="color: #339933;">|--</span> buddypress<br />
<span style="color: #339933;">|</span> &nbsp; <span style="color: #339933;">|--</span> dream<span style="color: #339933;">.</span>old<span style="color: #339933;">.</span>didxid<br />
<span style="color: #339933;">|</span> &nbsp; `<span style="color: #339933;">--</span> wp<span style="color: #339933;">-</span>mui<span style="color: #339933;">-</span>mass<span style="color: #339933;">-</span>user<span style="color: #339933;">-</span>input<br />
`<span style="color: #339933;">--</span> wpmu<span style="color: #339933;">.</span>old<br />
&nbsp; &nbsp; <span style="color: #339933;">|--</span> wp<span style="color: #339933;">-</span>admin<br />
&nbsp; &nbsp; <span style="color: #339933;">|--</span> wp<span style="color: #339933;">-</span>content<br />
&nbsp; &nbsp; `<span style="color: #339933;">--</span> wp<span style="color: #339933;">-</span>includes<br />
<br />
<span style="color: #cc66cc;">12</span> directories<br />
<span style="color: #009900;">&#40;</span><a href="http://www.php.net/end"><span style="color: #990000;">END</span></a><span style="color: #009900;">&#41;</span></div></td></tr></tbody></table></div>
<p><b>Más opciones:</b>
<div class="codecolorer-container php blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #339933;">-</span>f<span style="color: #339933;">:</span> incluir la ruta de cada archivo<br />
<span style="color: #339933;">-</span>p<span style="color: #339933;">:</span> incluir permisos <span style="color: #666666; font-style: italic;">// [drwxr-xr-x]</span><br />
<span style="color: #339933;">-</span>u<span style="color: #339933;">:</span> incluir nombre de usuario dueño<br />
<span style="color: #339933;">-</span>h o <span style="color: #339933;">-</span>s<span style="color: #339933;">:</span> incluir tamaño<br />
<span style="color: #339933;">-</span>D<span style="color: #339933;">:</span> incluir fecha de modificación<br />
<br />
$ tree <span style="color: #339933;">-</span>L <span style="color: #cc66cc;">2</span> <span style="color: #339933;">-</span>dfpuDt<br />
<span style="color: #339933;">.</span><br />
<span style="color: #339933;">|--</span> <span style="color: #009900;">&#91;</span>drwxr<span style="color: #339933;">-</span>xr<span style="color: #339933;">-</span>x nomikos &nbsp;May <span style="color: #cc66cc;">25</span> <span style="color: #cc66cc;">12</span><span style="color: #339933;">:</span><span style="color:#800080;">08</span><span style="color: #009900;">&#93;</span> &nbsp;<span style="color: #339933;">./</span>test<br />
<span style="color: #339933;">|</span> &nbsp; `<span style="color: #339933;">--</span> <span style="color: #009900;">&#91;</span>drwxr<span style="color: #339933;">-</span>xr<span style="color: #339933;">-</span>x nomikos &nbsp;May <span style="color: #cc66cc;">25</span> <span style="color: #cc66cc;">11</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">44</span><span style="color: #009900;">&#93;</span> &nbsp;<span style="color: #339933;">./</span>test<span style="color: #339933;">/</span>tora<br />
<span style="color: #339933;">|--</span> <span style="color: #009900;">&#91;</span>drwxr<span style="color: #339933;">-</span>xr<span style="color: #339933;">-</span>x nomikos &nbsp;Apr <span style="color: #cc66cc;">21</span> <span style="color: #cc66cc;">14</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">33</span><span style="color: #009900;">&#93;</span> &nbsp;<span style="color: #339933;">./</span>F<span style="color: #339933;">.</span>E<span style="color: #339933;">.</span>A<span style="color: #339933;">.</span>R ISO<br />
<span style="color: #339933;">|--</span> <span style="color: #009900;">&#91;</span>drwxr<span style="color: #339933;">-</span>xr<span style="color: #339933;">-</span>x nomikos &nbsp;Apr <span style="color: #cc66cc;">15</span> <span style="color: #cc66cc;">16</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">45</span><span style="color: #009900;">&#93;</span> &nbsp;<span style="color: #339933;">./</span>tmp<br />
<span style="color: #339933;">|</span> &nbsp; <span style="color: #339933;">|--</span> <span style="color: #009900;">&#91;</span>drwxr<span style="color: #339933;">-</span>xr<span style="color: #339933;">-</span>x nomikos &nbsp;Mar <span style="color: #cc66cc;">26</span> <span style="color: #cc66cc;">14</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">30</span><span style="color: #009900;">&#93;</span> &nbsp;<span style="color: #339933;">./</span>tmp<span style="color: #339933;">/</span>dream<span style="color: #339933;">.</span>old<span style="color: #339933;">.</span>didxid<br />
<span style="color: #339933;">|</span> &nbsp; <span style="color: #339933;">|--</span> <span style="color: #009900;">&#91;</span>drwxr<span style="color: #339933;">-</span>xr<span style="color: #339933;">-</span>x nomikos &nbsp;Mar <span style="color: #cc66cc;">26</span> &nbsp;<span style="color: #cc66cc;">0</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">43</span><span style="color: #009900;">&#93;</span> &nbsp;<span style="color: #339933;">./</span>tmp<span style="color: #339933;">/</span>bp<span style="color: #339933;">-</span>group<span style="color: #339933;">-</span>management<br />
<span style="color: #339933;">|</span> &nbsp; <span style="color: #339933;">|--</span> <span style="color: #009900;">&#91;</span>drwxr<span style="color: #339933;">-</span>xr<span style="color: #339933;">-</span>x nomikos &nbsp;Mar <span style="color: #cc66cc;">22</span> <span style="color: #cc66cc;">18</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">37</span><span style="color: #009900;">&#93;</span> &nbsp;<span style="color: #339933;">./</span>tmp<span style="color: #339933;">/</span>buddypress<br />
<span style="color: #339933;">|</span> &nbsp; `<span style="color: #339933;">--</span> <span style="color: #009900;">&#91;</span>drwxr<span style="color: #339933;">-</span>xr<span style="color: #339933;">-</span>x nomikos &nbsp;Feb <span style="color: #cc66cc;">19</span> <span style="color: #cc66cc;">12</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">26</span><span style="color: #009900;">&#93;</span> &nbsp;<span style="color: #339933;">./</span>tmp<span style="color: #339933;">/</span>wp<span style="color: #339933;">-</span>mui<span style="color: #339933;">-</span>mass<span style="color: #339933;">-</span>user<span style="color: #339933;">-</span>input<br />
`<span style="color: #339933;">--</span> <span style="color: #009900;">&#91;</span>drwxrwxrwx nomikos &nbsp;Mar <span style="color: #cc66cc;">21</span> <span style="color: #cc66cc;">23</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">12</span><span style="color: #009900;">&#93;</span> &nbsp;<span style="color: #339933;">./</span>wpmu<span style="color: #339933;">.</span>old<br />
&nbsp; &nbsp; <span style="color: #339933;">|--</span> <span style="color: #009900;">&#91;</span>drwxrwxrwx nomikos &nbsp;Mar <span style="color: #cc66cc;">18</span> &nbsp;<span style="color: #cc66cc;">0</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">40</span><span style="color: #009900;">&#93;</span> &nbsp;<span style="color: #339933;">./</span>wpmu<span style="color: #339933;">.</span>old<span style="color: #339933;">/</span>wp<span style="color: #339933;">-</span>content<br />
&nbsp; &nbsp; <span style="color: #339933;">|--</span> <span style="color: #009900;">&#91;</span>drwxr<span style="color: #339933;">-</span>xr<span style="color: #339933;">-</span>x nomikos &nbsp;Mar <span style="color: #cc66cc;">16</span> &nbsp;<span style="color: #cc66cc;">1</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">21</span><span style="color: #009900;">&#93;</span> &nbsp;<span style="color: #339933;">./</span>wpmu<span style="color: #339933;">.</span>old<span style="color: #339933;">/</span>wp<span style="color: #339933;">-</span>admin<br />
&nbsp; &nbsp; `<span style="color: #339933;">--</span> <span style="color: #009900;">&#91;</span>drwxr<span style="color: #339933;">-</span>xr<span style="color: #339933;">-</span>x nomikos &nbsp;Mar <span style="color: #cc66cc;">16</span> &nbsp;<span style="color: #cc66cc;">1</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">21</span><span style="color: #009900;">&#93;</span> &nbsp;<span style="color: #339933;">./</span>wpmu<span style="color: #339933;">.</span>old<span style="color: #339933;">/</span>wp<span style="color: #339933;">-</span>includes<br />
<br />
<span style="color: #cc66cc;">12</span> directories</div></td></tr></tbody></table></div>
<p>Esto resulta muy útil al querer enviar un listado de archivos a otro usuario &#8211;o para simplemente guardarlo.</p>
<div class="codecolorer-container php blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;"># la opción -o redirije la salida a un archivo<br />
</span>$ tree <span style="color: #339933;">-</span>o archivos<span style="color: #339933;">.</span>txt<br />
<br />
<span style="color: #666666; font-style: italic;"># más fácil es así, por que crea el archivo si no existe<br />
</span>$ tree <span style="color: #339933;">&gt;</span> archivos<span style="color: #339933;">.</span>txt<br />
<br />
<span style="color: #666666; font-style: italic;"># y lo mejor es poder ir añadiendo a un mismo archivo<br />
</span><span style="color: #666666; font-style: italic;"># ~/ es tu directorio personal<br />
</span><span style="color: #666666; font-style: italic;"># esto asegura que siempre se agrega al mismo archivo<br />
</span>$ tree <span style="color: #339933;">&gt;&gt;</span> ~<span style="color: #339933;">/</span>archivos<span style="color: #339933;">.</span>txt</div></td></tr></tbody></table></div>


<p>Posts relacionados:<ol><li><a href='http://nomikos.info/2009/05/30/uso-del-administrador-de-archivos-midnight-commander-y-gnome-commander-en-linux-tutorial.html' rel='bookmark' title='Permanent Link: Uso del administrador de archivos &#8220;midnight-commander&#8221; y &#8220;gnome-commander&#8221; en linux &#8211; Tutorial.'>Uso del administrador de archivos &#8220;midnight-commander&#8221; y &#8220;gnome-commander&#8221; en linux &#8211; Tutorial.</a></li>
<li><a href='http://nomikos.info/2010/06/05/midnight-commander-%e2%80%93-login-automatico-en-ftp.html' rel='bookmark' title='Permanent Link: midnight-commander – login automático en FTP usando .netrc'>midnight-commander – login automático en FTP usando .netrc</a></li>
<li><a href='http://nomikos.info/2009/08/18/chmod-avanzado.html' rel='bookmark' title='Permanent Link: Comando chmod -R (recursivo) en directorios y archivos por separado.'>Comando chmod -R (recursivo) en directorios y archivos por separado.</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://nomikos.info/2010/05/25/listando-directorios-con-tree-sin-olvidar-a-midnight-commander-en-la-linea-de-comandos.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Comando chmod -R (recursivo) en directorios y archivos por separado.</title>
		<link>http://nomikos.info/2009/08/18/chmod-avanzado.html</link>
		<comments>http://nomikos.info/2009/08/18/chmod-avanzado.html#comments</comments>
		<pubDate>Tue, 18 Aug 2009 10:23:00 +0000</pubDate>
		<dc:creator>NomikOS</dc:creator>
				<category><![CDATA[Comandos]]></category>

		<guid isPermaLink="false">http://nomikos.info/?p=774</guid>
		<description><![CDATA[photo credit: En un post anterior hablamos exhaustivamente del comando chmod, que sirve para cambiar los privilegios de acceso a tus archivos en linux. Vimos que con la opción -R podemos aplicar este comando recursivamente a un directorio, y así operar sobre todos los archivos y subdirectorios que contenga. Bien, espero que no hayas metido [...]


Posts relacionados:<ol><li><a href='http://nomikos.info/2009/08/01/chmod-modificacion-de-accesos-a-un-archivo.html' rel='bookmark' title='Permanent Link: Comando chmod &#8211; Modificación de accesos a un archivo.'>Comando chmod &#8211; Modificación de accesos a un archivo.</a></li>
<li><a href='http://nomikos.info/2010/06/08/wordpress-plugin-calculadora-chmod.html' rel='bookmark' title='Permanent Link: WordPress plugin &#8211; calculadora chmod.'>WordPress plugin &#8211; calculadora chmod.</a></li>
<li><a href='http://nomikos.info/2010/05/25/listando-directorios-con-tree-sin-olvidar-a-midnight-commander-en-la-linea-de-comandos.html' rel='bookmark' title='Permanent Link: Listando directorios con tree (sin olvidar a midnight-commander) en la línea de comandos.'>Listando directorios con tree (sin olvidar a midnight-commander) en la línea de comandos.</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="photodropper"><a href="http://www.flickr.com/photos/83776439@N00/3654723680/" title="Unix Magazin Final" target="_blank"><img src="http://farm4.static.flickr.com/3637/3654723680_f6eb221a0e_m.jpg" alt="Unix Magazin Final" border="0" /></a><br /><small><a href="http://creativecommons.org/licenses/by-nc-nd/2.0/" title="Attribution-NonCommercial-NoDerivs License" target="_blank"><img src="http://nomikos.info/wp-content/plugins/photo-dropper/images/cc.png" alt="Creative Commons License" border="0" width="16" height="16" align="absmiddle" /></a> <a href="http://www.photodropper.com/photos/" target="_blank">photo</a> credit: <a href="http://www.flickr.com/photos/83776439@N00/3654723680/" title="" target="_blank"></a></small></div>
<p>En un post anterior hablamos exhaustivamente del comando chmod, que sirve para cambiar los privilegios de acceso a tus archivos en linux.</p>
<p>Vimos que con la opción -R podemos aplicar este comando recursivamente a un directorio, y así operar sobre todos los archivos y subdirectorios que contenga. Bien, espero que no hayas metido la pata ya.</p>
<p><br style="clear:both"></p>
<p>Porque si así lo hacemos damos el mismo tipo de privilegios a directorios y archivos normales por igual.</p>
<p>Hace tiempo que tenía este problema con chmod. Recién ayer encontré un post sobre el tema <a target="_blank" href="http://rainsoftletters.wordpress.com/2008/07/22/recursively-chmodi-only-directories-or-files/">Recursively chmod only directories or files</a>.</p>
<p>Los siguientes comandos usan find y chmod conjuntamente.</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;"># Encontrar directorios (-type d) en el directorio actual (.) y darles</span><br />
<span style="color: #666666; font-style: italic;"># acceso 755</span><br />
<span style="color: #c20cb9; font-weight: bold;">find</span> . <span style="color: #660033;">-type</span> d <span style="color: #660033;">-exec</span> <span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #000000;">755</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span> \;<br />
<br />
<span style="color: #666666; font-style: italic;"># Encontrar archivos (-type f) en el directorio actual (.) y darles</span><br />
<span style="color: #666666; font-style: italic;"># acceso 644</span><br />
<span style="color: #c20cb9; font-weight: bold;">find</span> . <span style="color: #660033;">-type</span> f <span style="color: #660033;">-exec</span> <span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #000000;">644</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span> \;<br />
<br />
<span style="color: #666666; font-style: italic;"># Encontrar archivos (-type f) html (-name '*.htm*') en el subdirectorio</span><br />
<span style="color: #666666; font-style: italic;"># web (./web) y darles acceso 644</span><br />
<span style="color: #c20cb9; font-weight: bold;">find</span> .<span style="color: #000000; font-weight: bold;">/</span>web <span style="color: #660033;">-type</span> f <span style="color: #660033;">-name</span> <span style="color: #ff0000;">'*.htm*'</span> <span style="color: #660033;">-exec</span> <span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #000000;">644</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span> \;<br />
<br />
<span style="color: #666666; font-style: italic;"># Encontrar archivos/directorios con permiso 777 (-perm 777) en el</span><br />
<span style="color: #666666; font-style: italic;"># directorio actual (.) y darles acceso 755. La opción -print entrega</span><br />
<span style="color: #666666; font-style: italic;"># más información sobre el resultado</span><br />
<span style="color: #c20cb9; font-weight: bold;">find</span> . <span style="color: #660033;">-perm</span> <span style="color: #000000;">777</span> <span style="color: #660033;">-exec</span> <span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #000000;">755</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span> \; <span style="color: #660033;">-print</span></div></td></tr></tbody></table></div>


<p>Posts relacionados:<ol><li><a href='http://nomikos.info/2009/08/01/chmod-modificacion-de-accesos-a-un-archivo.html' rel='bookmark' title='Permanent Link: Comando chmod &#8211; Modificación de accesos a un archivo.'>Comando chmod &#8211; Modificación de accesos a un archivo.</a></li>
<li><a href='http://nomikos.info/2010/06/08/wordpress-plugin-calculadora-chmod.html' rel='bookmark' title='Permanent Link: WordPress plugin &#8211; calculadora chmod.'>WordPress plugin &#8211; calculadora chmod.</a></li>
<li><a href='http://nomikos.info/2010/05/25/listando-directorios-con-tree-sin-olvidar-a-midnight-commander-en-la-linea-de-comandos.html' rel='bookmark' title='Permanent Link: Listando directorios con tree (sin olvidar a midnight-commander) en la línea de comandos.'>Listando directorios con tree (sin olvidar a midnight-commander) en la línea de comandos.</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://nomikos.info/2009/08/18/chmod-avanzado.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Comando chmod &#8211; Modificación de accesos a un archivo.</title>
		<link>http://nomikos.info/2009/08/01/chmod-modificacion-de-accesos-a-un-archivo.html</link>
		<comments>http://nomikos.info/2009/08/01/chmod-modificacion-de-accesos-a-un-archivo.html#comments</comments>
		<pubDate>Sun, 02 Aug 2009 03:15:39 +0000</pubDate>
		<dc:creator>NomikOS</dc:creator>
				<category><![CDATA[Comandos]]></category>

		<guid isPermaLink="false">http://nomikos.info/?p=695</guid>
		<description><![CDATA[[wp_chmod_calc] No he podido hacer que esta calculadora aparezca en otro lugar más que en el principio. Es un muy sencillo plugin WP que hice para enmascarar el script en javascript desarrollado por Jeroen Vermeulen. Si lo quieres deja un comentario y si no, también. Como ves es un excelente juguete para practicar lo que [...]


Posts relacionados:<ol><li><a href='http://nomikos.info/2009/08/18/chmod-avanzado.html' rel='bookmark' title='Permanent Link: Comando chmod -R (recursivo) en directorios y archivos por separado.'>Comando chmod -R (recursivo) en directorios y archivos por separado.</a></li>
<li><a href='http://nomikos.info/2010/06/08/wordpress-plugin-calculadora-chmod.html' rel='bookmark' title='Permanent Link: WordPress plugin &#8211; calculadora chmod.'>WordPress plugin &#8211; calculadora chmod.</a></li>
<li><a href='http://nomikos.info/2010/06/05/sobreescribiendo-archivos-de-solo-lectura-en-vi.html' rel='bookmark' title='Permanent Link: Sobreescribiendo archivos de sólo lectura en vi.'>Sobreescribiendo archivos de sólo lectura en vi.</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>[wp_chmod_calc]</p>
<blockquote><p>
No he podido hacer que esta calculadora aparezca en otro lugar más que en el principio. Es un muy sencillo plugin WP que hice para enmascarar el script en javascript desarrollado por <a target="_blank" href="alphamegahosting.com">Jeroen Vermeulen</a>. Si lo quieres deja un comentario y si no, también. Como ves es un excelente juguete para practicar lo que aquí veremos.</p>
<p>NomikOS.-</p>
</blockquote>
<h1>Introducción</h1>
<p>El comando chmod (<u>ch</u>ange <u>mod</u>e) permite asignar a un archivo o directorio distintos tipo de accesos &#8211;o permisos de acceso&#8211;  a distintos tipos de usuarios.</p>
<div class="codecolorer-container php blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">man <a href="http://www.php.net/chmod"><span style="color: #990000;">chmod</span></a><br />
NAME<br />
&nbsp; &nbsp; &nbsp; &nbsp;<a href="http://www.php.net/chmod"><span style="color: #990000;">chmod</span></a> <span style="color: #339933;">-</span> change <a href="http://www.php.net/file"><span style="color: #990000;">file</span></a> mode bits<br />
SYNOPSIS<br />
&nbsp; &nbsp; &nbsp; &nbsp;<a href="http://www.php.net/chmod"><span style="color: #990000;">chmod</span></a> <span style="color: #009900;">&#91;</span>OPTION<span style="color: #009900;">&#93;</span><span style="color: #339933;">...</span> MODE<span style="color: #009900;">&#91;</span><span style="color: #339933;">,</span>MODE<span style="color: #009900;">&#93;</span><span style="color: #339933;">...</span> <a href="http://www.php.net/file"><span style="color: #990000;">FILE</span></a><span style="color: #339933;">...</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;<a href="http://www.php.net/chmod"><span style="color: #990000;">chmod</span></a> <span style="color: #009900;">&#91;</span>OPTION<span style="color: #009900;">&#93;</span><span style="color: #339933;">...</span> OCTAL<span style="color: #339933;">-</span>MODE <a href="http://www.php.net/file"><span style="color: #990000;">FILE</span></a><span style="color: #339933;">...</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;<a href="http://www.php.net/chmod"><span style="color: #990000;">chmod</span></a> <span style="color: #009900;">&#91;</span>OPTION<span style="color: #009900;">&#93;</span><span style="color: #339933;">...</span> <span style="color: #339933;">--</span>reference<span style="color: #339933;">=</span>RFILE <a href="http://www.php.net/file"><span style="color: #990000;">FILE</span></a><span style="color: #339933;">...</span><br />
<br />
<span style="color: #666666; font-style: italic;"># o sea basicamente el formato es:<br />
</span><a href="http://www.php.net/chmod"><span style="color: #990000;">chmod</span></a> <span style="color: #009900;">&#91;</span>opciones<span style="color: #009900;">&#93;</span> permisos archivo<span style="color: #009900;">&#91;</span>s<span style="color: #009900;">&#93;</span></div></td></tr></tbody></table></div>
<h1>Tipos de permisos</h1>
<p>Tenemos 3 tipos de permisos de acceso que pueden ser otorgados o revocados a cada archivo:</p>
<blockquote>
<li><b>r</b> read: lectura
<li><b>w</b> write: escritura &#8211;modificación, borrado, renombrado
<li><b>x</b> execute: ejecución &#8211;si es archivo, acceso si es directorio
</p></blockquote>
<h1>Tipos de usuarios</h1>
<p>Tenemos 4 tipo de usuarios: usuario, grupo, otros y todos.</p>
<blockquote>
<li><b>u</b> user: dueño del archivo
<li><b>g</b> group: grupo al que pertenece el archivo
<li><b>o</b> others: el resto de usuarios
<li><b>a</b> all: todos los usuarios
</p></blockquote>
<h1>Opciones</h1>
<p>Los más usados son:</p>
<blockquote>
<li><b>R</b> recursive: aplica el comando recursivamente a todos los archivos y subdirectorios de un directorio.
<li><b>v</b> verbose: informa de resultados por cada archivo procesado (no muy útil en verdad).
<p>Recuerda que las opciones siempre se anteceden por un (y sólo un) guión (-). Por ejemplo:</p>
<p>chmod -vR ugo=rwx archivo
</p></blockquote>
<h1>Operadores</h1>
<p>Los permisos pueden ser otorgados de la siguiente manera. Luego veremos otra forma, la octal.</p>
<blockquote>
<li><b>+</b> agrega permiso
<li><b>-</b> elimina permiso
<li><b>=</b> hace igual a (los ejemplos aclararán esto)
</p></blockquote>
<h1>Ejemplos con notación literal</h1>
<p>Para entender la diferencia entre = y +/- fíjate muy bien en los comentarios (nada más) y (y mantiene los demás)</p>
<div class="codecolorer-container fortran blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br /></div></td><td><div class="fortran codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># en general haremos combinaciones<span style="color: #339933;">:</span> ugoa <span style="color: #009900;">&#91;</span>operador<span style="color: #009900;">&#93;</span> permisos<br />
<span style="color: #666666; font-style: italic;">chmod u/g/o/a +/-/= r/w/x</span><br />
<br />
# puedes definir varios accesos a varios archivos en un sólo paso<br />
# separando por comas los permisos y por espacios los archivos<br />
<span style="color: #666666; font-style: italic;">chmod u+rwx, go+rx, go-w archivo1 archivo2</span><br />
<br />
# dueño lee, escribe y ejecuta <span style="color: #009900;">&#40;</span>es decir, permite todo tipo de acceso<span style="color: #009900;">&#41;</span><br />
<span style="color: #666666; font-style: italic;">chmod u=rwx archivo</span><br />
<br />
# grupo lee y ejecuta <span style="color: #009900;">&#40;</span>nada más<span style="color: #009900;">&#41;</span><br />
# otros leen y escriben <span style="color: #009900;">&#40;</span>nada más<span style="color: #009900;">&#41;</span><br />
<span style="color: #666666; font-style: italic;">chmod g=rx, o=rw archivo</span><br />
<br />
# dueño agrega permiso de escritura <span style="color: #009900;">&#40;</span>y mantiene los demás<span style="color: #009900;">&#41;</span><br />
# grupo agrega permisos de lectura y ejecución <span style="color: #009900;">&#40;</span>y mantiene los demás<span style="color: #009900;">&#41;</span><br />
# grupo elimina permisos de escritura <span style="color: #009900;">&#40;</span>y mantiene los demás<span style="color: #009900;">&#41;</span><br />
<span style="color: #666666; font-style: italic;">chmod u+w, g+rx, g-w archivo</span><br />
<br />
# ahora dicho más sencillamente<span style="color: #339933;">:</span><br />
# grupo y otros sólo pueden ejecutar el archivo<br />
# el dueño puede leerlo y ejecutarlo manteniendo otros permisos ya dados<br />
<span style="color: #666666; font-style: italic;">chmod go=x, u+rx archivo</span></div></td></tr></tbody></table></div>
<h1>Modo octal</h1>
<p>Con lo ya visto puedes definir todos los tipos de permisos de una manera bastante representativa, verdad? Cuando ya tienes más experiencia buscas elegancia y eficiencia. Con el modo octal logras esto.<br />
Le llamamos octal porque usa números en <a target="_blank" href="http://es.wikipedia.org/wiki/Sistema_octal">base 8</a>: un modo de contar con el que podemos obtener todos los números (0 .. infinito) usando sólo los dígitos 0 a 7.</p>
<blockquote><p>
Solo recuerda esto. En una escala de 1 a 7:</p>
<li> Lo más preciado es poder leer un archivo. Le damos un  4.
<li> Después, es poder escribir en él &#8211;no necesariamente leerlo. Le damos un 2.
<li> Lo mínimo que podemos hacer con un archivo es poder ejecutarlo &#8211;sin saber como está escrito ni poder modificarlo. Le damos un 1.
<li> En verdad, lo mínimo que podemos hacer con un archivo es nada. Le damos un 0.
<p>Ahora, si podemos hacer todo lo que queramos con el archivo &#8211;leerlo, modificarlo y ejecutarlo&#8211; le damos la suma de todos, un 7 (4+2+1)</p>
<p>Asimilándolo al formato r-w-x tenemos:</p>
<li> <b>r</b> -leer- es un <b>4</b>
<li> <b>w</b> -escribir- es un <b>2</b>
<li> <b>x</b> -ejecutar- es un <b>1</b>
</p></blockquote>
<p>Ahora que sabemos que como interpretar estos números, los usaremos escribiéndolos en un determinado orden.<br />
Este orden determina a que tipo de usuario (<i>ugo</i>) le asignamos que tipo de permiso &#8211;dado por los números 4,2,1,0,7; basándonos en su posición.</p>
<blockquote>
<li> posición 1: <b>u</b> -dueño
<li> posición 2: <b>g</b> -grupo
<li> posición 3: <b>o</b> -otros
<p>posición 1 posición 2  posición 3 -> u g o</p>
<p>Nota:</p>
<p>El tipo de usuarios <i>a</i> (all: todos) está implicita, ya que u+g+o=a<br />
usuario + grupo + otros = todos
</p></blockquote>
<p>Eso es todo. Sencillo verdad?</p>
<h1>Ejemplos con notación octal</h1>
<p>Fíjate como obtenemos todas las combinaciones posibles sumando los permisos básicos 4, 2 y 1.</p>
<div class="codecolorer-container fortran blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br /></div></td><td><div class="fortran codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># dueño puede leer, escribir y ejecutar <span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">4</span><span style="color: #339933;">+</span><span style="color: #cc66cc;">2</span><span style="color: #339933;">+</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><br />
# grupo puede escribir y ejecutar <span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">2</span><span style="color: #339933;">+</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">--</span>no leer<br />
# otros no tiene ningún acceso <span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><br />
<span style="color: #666666; font-style: italic;">chmod 730 archivo</span><br />
<br />
# este tipo de permiso es muy usado en archivos de servidores web<br />
# dueño puede leer y escribir <span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">4</span><span style="color: #339933;">+</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><br />
# grupo y otros sólo pueden leer <span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">4</span><span style="color: #009900;">&#41;</span><br />
<span style="color: #666666; font-style: italic;">chmod 644 archivo</span><br />
<br />
# este tipo de permiso es muy usado en directorios de servidores web<br />
# dueño puede leer, escribir y acceder al directorio<br />
# grupo y otros pueden leer y acceder <span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">4</span><span style="color: #339933;">+</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> achivos al directorio<br />
<span style="color: #666666; font-style: italic;">chmod 755 directorio</span></div></td></tr></tbody></table></div>
<p>La notación r-w-x es la usada por el comando <i>ls -l</i> para decirnos los permisos de cada archivo:</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">drwxr-xr-x &nbsp;<span style="color: #000000;">2</span> nomikos <span style="color: #c20cb9; font-weight: bold;">users</span> &nbsp; &nbsp; &nbsp;<span style="color: #000000;">104</span> <span style="color: #000000;">2009</span>-07-<span style="color: #000000;">10</span> 03:<span style="color: #000000;">54</span> backups<br />
<span style="color: #660033;">-rwxr-xr-x</span> &nbsp;<span style="color: #000000;">1</span> nomikos <span style="color: #c20cb9; font-weight: bold;">users</span> &nbsp; <span style="color: #000000;">103282</span> <span style="color: #000000;">2009</span>-07-<span style="color: #000000;">10</span> 03:<span style="color: #000000;">56</span> program<br />
<span style="color: #660033;">-rw-r--r--</span> &nbsp;<span style="color: #000000;">1</span> nomikos <span style="color: #c20cb9; font-weight: bold;">users</span> <span style="color: #000000;">19734183</span> <span style="color: #000000;">2009</span>-07-<span style="color: #000000;">31</span> 07:<span style="color: #000000;">27</span> blog.sql</div></td></tr></tbody></table></div>
<div class="codecolorer-container php blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #339933;">-</span>rwxr<span style="color: #339933;">-</span>xr<span style="color: #339933;">-</span>x <span style="color: #666666; font-style: italic;">// se representa como 755 en notación octal.</span><br />
<span style="color: #339933;">-</span>rw<span style="color: #339933;">-</span>rw<span style="color: #339933;">-</span>r<span style="color: #339933;">--</span> <span style="color: #666666; font-style: italic;">// se representa como 664 en notación octal.</span><br />
<span style="color: #339933;">-</span>r<span style="color: #339933;">-</span>x<span style="color: #339933;">------</span> <span style="color: #666666; font-style: italic;">// se representa como 500 en notación octal.</span></div></td></tr></tbody></table></div>
<blockquote><p>
El primer guión (-) dice que es un archivo regular, podría ser (d) de directorio, (l) link simbólico y otros.
</p></blockquote>
<p>Por último, en general los links simbólicos siempre muestran todos los permisos para todos los tipos de usuarios:</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">lrwxrwxrwx &nbsp; <span style="color: #000000;">1</span> root root &nbsp; &nbsp; <span style="color: #000000;">3</span> <span style="color: #000000;">2009</span>-07-<span style="color: #000000;">18</span> <span style="color: #000000;">15</span>:<span style="color: #000000;">50</span> X11R6 -<span style="color: #000000; font-weight: bold;">&gt;</span> X11<br />
lrwxrwxrwx &nbsp; <span style="color: #000000;">1</span> root root &nbsp; &nbsp; <span style="color: #000000;">8</span> <span style="color: #000000;">2009</span>-07-<span style="color: #000000;">18</span> <span style="color: #000000;">15</span>:<span style="color: #000000;">50</span> adm -<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>adm</div></td></tr></tbody></table></div>
<p>Eso es normal y no significa que el archivo apuntado tenga esos permisos. Si aplicas chmod a uno de estos archivos &#8211;los links tambien son archivos&#8211; los permisos se darán al archivo apuntado.</p>


<p>Posts relacionados:<ol><li><a href='http://nomikos.info/2009/08/18/chmod-avanzado.html' rel='bookmark' title='Permanent Link: Comando chmod -R (recursivo) en directorios y archivos por separado.'>Comando chmod -R (recursivo) en directorios y archivos por separado.</a></li>
<li><a href='http://nomikos.info/2010/06/08/wordpress-plugin-calculadora-chmod.html' rel='bookmark' title='Permanent Link: WordPress plugin &#8211; calculadora chmod.'>WordPress plugin &#8211; calculadora chmod.</a></li>
<li><a href='http://nomikos.info/2010/06/05/sobreescribiendo-archivos-de-solo-lectura-en-vi.html' rel='bookmark' title='Permanent Link: Sobreescribiendo archivos de sólo lectura en vi.'>Sobreescribiendo archivos de sólo lectura en vi.</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://nomikos.info/2009/08/01/chmod-modificacion-de-accesos-a-un-archivo.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
