<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/rss2full.xsl" type="text/xsl" media="screen"?><?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/itemcontent.css" type="text/css" media="screen"?><rss 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" version="2.0">

<channel>
	<title>Solusan</title>
	
	<link>http://www.solusan.com</link>
	<description>..:: Solusan - Otro blog más ::..</description>
	<pubDate>Mon, 21 Jul 2008 07:46:31 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/solusan" type="application/rss+xml" /><item>
		<title>Codepad, prueba tu código desde el navegador</title>
		<link>http://www.solusan.com/codepad-prueba-tu-codigo-desde-el-navegador.html</link>
		<comments>http://www.solusan.com/codepad-prueba-tu-codigo-desde-el-navegador.html#comments</comments>
		<pubDate>Tue, 15 Jul 2008 09:07:39 +0000</pubDate>
		<dc:creator>Solusan</dc:creator>
		
		<category><![CDATA[Geek Works]]></category>

		<category><![CDATA[c]]></category>

		<category><![CDATA[code]]></category>

		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.solusan.com/?p=1039</guid>
		<description><![CDATA[ 


Codepad es un interesante aplicación Web para muchos programadores. Se trata de un sitio desde donde cualquier puede probar sus códigos para saber si realmente funcionan. Además en caso de fallar nos mostrará la/s líneas donde se encuentra el error.
Admite 13 lenguajes de programación diferentes entre los que podemos encontrar: C, C++, PHP, Phyton, [...]]]></description>
			<content:encoded><![CDATA[<p><!-- post_headerr --> <!-- post_header --></p>
<div class="entry">
<p style="text-align: center;"><a href="http://www.solusan.com/wp-content/2008/07/codepad.png"><img class="aligncenter size-full wp-image-1040" title="codepad" src="http://www.solusan.com/wp-content/2008/07/codepad.png" alt="" width="400" height="269" /></a></p>
<p><a href="http://codepad.org/" target="_blank">Codepad</a> es un <strong>interesante aplicación Web para muchos programadores</strong>. Se trata de un sitio desde donde cualquier puede <strong>probar sus códigos</strong> para saber si realmente funcionan. Además en caso de fallar nos mostrará la/s líneas donde se encuentra el error.</p>
<p>Admite <strong>13 lenguajes de programación diferentes</strong> entre los que podemos encontrar: C, C++, PHP, Phyton, Ruby entre otros.</p>
<p>Además también guarda un <strong>historial con códigos</strong> que se han insertado en el sitio recientamente. Su uso por supuesto es gratuito y no necesita registro, aunque si nos registramos tendremos nuevas opciones como la revisión de códigos en grupo por ejemplo.</p>
<p>Vía: <a title="http://www.buscandolibertad.es/2008/07/15/codepad-prueba-tu-codigo-desde-el-navegador/" href="http://www.buscandolibertad.es/2008/07/15/codepad-prueba-tu-codigo-desde-el-navegador/" target="_blank">http://www.buscandolibertad.es/2008/07/15/codepad-prueba-tu-codigo-desde-el-navegador/</a></p>
</div>
<p class="akst_link"><a target="_blank" href="http://www.solusan.com/?p=1039&amp;akst_action=share-this"  title="Comparte esta publicaci&oacute;n en technorati, meneame, etc." id="akst_link_1039" class="akst_share_link" rel="nofollow">Comp&aacute;rtelo!</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://www.solusan.com/codepad-prueba-tu-codigo-desde-el-navegador.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Ya se puede compilar aircrack-ng en Mac OS X</title>
		<link>http://www.solusan.com/ya-se-puede-compilar-aircrack-ng-en-mac-os-x.html</link>
		<comments>http://www.solusan.com/ya-se-puede-compilar-aircrack-ng-en-mac-os-x.html#comments</comments>
		<pubDate>Fri, 04 Jul 2008 23:46:54 +0000</pubDate>
		<dc:creator>Solusan</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.solusan.com/?p=1037</guid>
		<description><![CDATA[Pedazo de notición que aporta berni69 en el sección que modero en Seguridad Wireless
Habrá que ser cautos aún a ver si hay soporte para inyección en OS X y es que, de ser cierto, ahí podría echar una buena mano en ambos foros, siempre desde la legalidad  
Para el que no lo sepa, aircrack [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://foro.seguridadwireless.net/index.php?topic=5409.0">Pedazo de notición</a> que aporta berni69 en el sección que modero en <a href="http://www.seguridadwireless.net/">Seguridad Wireless</a></p>
<p>Habrá que ser cautos aún a ver si hay soporte para inyección en OS X y es que, de ser cierto, ahí podría echar una buena mano en ambos foros, siempre desde la legalidad <img src='http://www.solusan.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Para el que no lo sepa, aircrack es una suite de auditoría de redes inhalámbricas, es decir, de modo simple: crackeo de claves WEP y WPA para uso no delictivo.</p>
<p>Podéis ver el contenido <a href="http://trac.aircrack-ng.org/browser" target="_blank">aquí</a>.</p>
<p>El proceso básico para compilar es bajar el compilador GCC usando fink o, para los menos adictos al software libre, bajar XCode Tools. Bajar svn y ejecutar los siguientes comandos. Para lo anterior podéis seguir <a href="http://screammy.name/projects/kismacmacbook/" target="_blank">parte de esta guía</a>.</p>

<div id="wp_codebox_msgheader"><span class="right"><a href="javascript:;" onclick="toggle_collapse('p10372');">[<span id="p10372_symbol">-</span>]</a><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1037code2'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div id="wp_codebox"><table width="100%" ><tr id="p10372"><td class="code" id="p1037code2"><pre class="bash"><span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span><span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>svn <span style="color: #c20cb9; font-weight: bold;">co</span> http:<span style="color: #000000; font-weight: bold;">//</span>trac.aircrack-ng.org<span style="color: #000000; font-weight: bold;">/</span>svn<span style="color: #000000; font-weight: bold;">/</span>trunk<span style="color: #000000; font-weight: bold;">/</span> aircrack-ng
<span style="color: #7a0874; font-weight: bold;">cd</span> aircrack-ng
<span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></td></tr></table></div>

<p>Nota: Es posible que <em>/usr/local/bin/svn</em> esté en otro sitio.</p>
<p>Si no queréis compilar he colocado yo el programa debajo. Para instalarlo debéis montar la imagen .dmg y, tras abrirlo, abrid en la carpeta y ejecutad el instalador que he creado</p>
<div class="imp-download"><a href="http://www.solusan.com/wp-content/2008/07/dl_image.gif"><img class="alignnone size-full wp-image-1038" title="dl_image" src="http://www.solusan.com/wp-content/2008/07/dl_image.gif" alt="" width="30" height="30" /></a><strong><a href="http://magarto.com/blog/?dl=10">Aircrack-ng 1.0 OS X</a></strong> <small>Downloads: 3448 times</small></div>
<p>Para usarlo tenéis infinidad de tutoriales por internet. Recomiendo las guías siguientes y para las dudas preguntar en el <a href="http://foro.seguridadwireless.net/index.php?board=17.0" target="_blank">foro de Seguridad Wireless en la sección de GNU/Linux</a>.</p>
<p>http://www.aircrack-ng.org/doku.php?id=aircrack-ng.es<br />
http://www.aircrack-ng.org/doku.php?id=tutorial<br />
http://aircrack-ng.org/doku.php?id=newbie_guide</p>
<p>Actualizaciones: No es un .app, es como en linux, simplemente son archivos ejecutables.</p>
<p>Os recuerdo o informo que aircrack funciona mediante terminal, es decir, no es como kismac que tiene entorno gráfico (frontend)… luego para usarlo hay que saber un poco de terminales y eso se puede ver usando los enlaces anteriores. Si alguien quiere hacer un frontend en cocoa bienvenido sea.</p>
<p>La inyección aún está por probarse a ver si trae aunque yo no me haría muchas ilusiones porque hablamos de HAL (hardware abstraction layer) luego todavía la ingeniería inversa está un poco por los aires y para que funcione la inyección hay que parchear.</p>
<p>Vía: <a title="http://magarto.com/blog/archivo/2007/09/02/aircrack-ng-en-mac-os-x/" href="http://magarto.com/blog/archivo/2007/09/02/aircrack-ng-en-mac-os-x/" target="_blank">http://magarto.com/blog/archivo/2007/09/02/aircrack-ng-en-mac-os-x/</a></p>
<p class="akst_link"><a target="_blank" href="http://www.solusan.com/?p=1037&amp;akst_action=share-this"  title="Comparte esta publicaci&oacute;n en technorati, meneame, etc." id="akst_link_1037" class="akst_share_link" rel="nofollow">Comp&aacute;rtelo!</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://www.solusan.com/ya-se-puede-compilar-aircrack-ng-en-mac-os-x.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Un poco de google</title>
		<link>http://www.solusan.com/un-poco-de-google.html</link>
		<comments>http://www.solusan.com/un-poco-de-google.html#comments</comments>
		<pubDate>Thu, 19 Jun 2008 10:52:08 +0000</pubDate>
		<dc:creator>Solusan</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.solusan.com/?p=1036</guid>
		<description><![CDATA[Ete aquí una pequeña chuleta de los comandos de el buscador Google:

site - restringe las búsquedas a un dominio que contenga ese nombre
intitle - permite buscar cadenas de texto en la cabecera
inurl - busca en toda la url
filetype - busca por tipo de fichero (extensión mayormente)
link - busca webs que apunten a
intext - con el [...]]]></description>
			<content:encoded><![CDATA[<p>Ete aquí una pequeña chuleta de los comandos de el buscador Google:</p>
<ul>
<li><span style="font-weight: bold;">site</span> - restringe las búsquedas a un dominio que contenga ese nombre</li>
<li><span style="font-weight: bold;">intitle</span> - permite buscar cadenas de texto en la cabecera</li>
<li><span style="font-weight: bold;">inurl</span> - busca en toda la url</li>
<li><span style="font-weight: bold;">filetype</span> - busca por tipo de fichero (extensión mayormente)</li>
<li><span style="font-weight: bold;">link</span> - busca webs que apunten a</li>
<li><span style="font-weight: bold;">intext</span> - con el siguiente texto solo en el body</li>
</ul>
<p>Y que pasa si hago: <a href="http://www.google.com/search?q=intitle%3A%22phpinfo%28%29%22+intext%3A%22PHP+License%22" target="_blank">intitle:&#8221;phpinfo()&#8221; intext:&#8221;PHP License&#8221;</a>? uops!</p>
<p>Evidentemente, hay muchas variantes no tan amigables&#8230;</p>
<p>Vía: <a title="http://jordirubio.blogspot.com/2008/06/un-poco-de-google.html" href="http://jordirubio.blogspot.com/2008/06/un-poco-de-google.html" target="_blank">http://jordirubio.blogspot.com/2008/06/un-poco-de-google.html</a></p>
<p class="akst_link"><a target="_blank" href="http://www.solusan.com/?p=1036&amp;akst_action=share-this"  title="Comparte esta publicaci&oacute;n en technorati, meneame, etc." id="akst_link_1036" class="akst_share_link" rel="nofollow">Comp&aacute;rtelo!</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://www.solusan.com/un-poco-de-google.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>¿Alguna combinación de teclas para pasar de MAYÚSCULAS a minúsculas?</title>
		<link>http://www.solusan.com/%c2%bfalguna-combinacion-de-teclas-para-pasar-de-mayusculas-a-minusculas.html</link>
		<comments>http://www.solusan.com/%c2%bfalguna-combinacion-de-teclas-para-pasar-de-mayusculas-a-minusculas.html#comments</comments>
		<pubDate>Tue, 17 Jun 2008 10:29:42 +0000</pubDate>
		<dc:creator>Solusan</dc:creator>
		
		<category><![CDATA[Geek Works]]></category>

		<category><![CDATA[Winbugs]]></category>

		<category><![CDATA[minúsculas]]></category>

		<category><![CDATA[word]]></category>

		<guid isPermaLink="false">http://www.solusan.com/?p=1035</guid>
		<description><![CDATA[Peuqeño TIP para cuando tratas con texto que interesa que esté en min. o may. en MS Word
Pulsando shift+F3 se puede cambiar de mayusculas a minusculas y viceversa.
Comp&#225;rtelo!
]]></description>
			<content:encoded><![CDATA[<p>Peuqeño TIP para cuando tratas con texto que interesa que esté en min. o may. en MS Word</p>
<p>Pulsando <strong>shift+F3</strong> se puede cambiar de mayusculas a minusculas y viceversa.</p>
<p class="akst_link"><a target="_blank" href="http://www.solusan.com/?p=1035&amp;akst_action=share-this"  title="Comparte esta publicaci&oacute;n en technorati, meneame, etc." id="akst_link_1035" class="akst_share_link" rel="nofollow">Comp&aacute;rtelo!</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://www.solusan.com/%c2%bfalguna-combinacion-de-teclas-para-pasar-de-mayusculas-a-minusculas.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Domótica x10 en Linux</title>
		<link>http://www.solusan.com/domotica-x10-en-linux.html</link>
		<comments>http://www.solusan.com/domotica-x10-en-linux.html#comments</comments>
		<pubDate>Sat, 14 Jun 2008 08:19:48 +0000</pubDate>
		<dc:creator>Solusan</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[domotica]]></category>

		<guid isPermaLink="false">http://www.solusan.com/?p=1034</guid>
		<description><![CDATA[h3yu es una aplicación web para el control domótico de una vivienda. Esta basada en x10 como protocolo para interactuar con los elementos de la casa y en Heyu como API para comunicarse con el interface conectado a la red eléctrica (CM11A). Aquí os dejo un screencast con una demo del software:



Vía: http://debxpc.homelinux.org/


Comp&#225;rtelo!
]]></description>
			<content:encoded><![CDATA[<p>h3yu es una aplicación web para el control domótico de una vivienda. Esta basada en x10 como protocolo para interactuar con los elementos de la casa y en <a href="http://www.heyu.org/">Heyu</a> como API para comunicarse con el interface conectado a la red eléctrica (CM11A). Aquí os dejo un screencast con una demo del software:</p>
<div class="meta"><a title="Ver todas las entradas en Tecnología" rel="category" href="http://debxpc.homelinux.org/?cat=5"></a></div>
<div class="blah">
<p style="text-align: center;">
<p>Vía: http://debxpc.homelinux.org/</p>
</div>
<p><object width="425" height="349"><param name="movie" value="http://www.youtube.com/v/-m82YSZiWAo&#038;hl=es&#038;rel=0&#038;border=1"></param><embed src="http://www.youtube.com/v/-m82YSZiWAo&#038;hl=es&#038;rel=0&#038;border=1" type="application/x-shockwave-flash" width="425" height="349"></embed></object></p>
<p class="akst_link"><a target="_blank" href="http://www.solusan.com/?p=1034&amp;akst_action=share-this"  title="Comparte esta publicaci&oacute;n en technorati, meneame, etc." id="akst_link_1034" class="akst_share_link" rel="nofollow">Comp&aacute;rtelo!</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://www.solusan.com/domotica-x10-en-linux.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>seq (TIP)</title>
		<link>http://www.solusan.com/seq-tip.html</link>
		<comments>http://www.solusan.com/seq-tip.html#comments</comments>
		<pubDate>Fri, 13 Jun 2008 07:37:50 +0000</pubDate>
		<dc:creator>Solusan</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.solusan.com/?p=1032</guid>
		<description><![CDATA[Creamos un un montón de ficheros para luego darle  el uso que queramos.
Definimos el intervalo: seq 23 26
centreon:/tmp# for num in $(seq 23 26); do echo cadena_${num}_cadena; done
Con esto veremos la salida
centreon:/tmp# for num in $(seq 23 26); do touch cadena_${num}_cadena; done
Con esto crearemos los archivos.
Comp&#225;rtelo!
]]></description>
			<content:encoded><![CDATA[<p>Creamos un un montón de ficheros para luego darle  el uso que queramos.</p>
<p>Definimos el intervalo: seq 23 26</p>
<p><code>centreon:/tmp# for num in $(seq 23 26); do echo cadena_${num}_cadena; done</code></p>
<p>Con esto veremos la salida</p>
<p><code>centreon:/tmp# for num in $(seq 23 26); do touch cadena_${num}_cadena; done</code></p>
<p>Con esto crearemos los archivos.</p>
<p class="akst_link"><a target="_blank" href="http://www.solusan.com/?p=1032&amp;akst_action=share-this"  title="Comparte esta publicaci&oacute;n en technorati, meneame, etc." id="akst_link_1032" class="akst_share_link" rel="nofollow">Comp&aacute;rtelo!</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://www.solusan.com/seq-tip.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Reiniciar y reparar discos (TIP)</title>
		<link>http://www.solusan.com/reiniciar-y-reparar-discos-tip.html</link>
		<comments>http://www.solusan.com/reiniciar-y-reparar-discos-tip.html#comments</comments>
		<pubDate>Sat, 07 Jun 2008 19:24:31 +0000</pubDate>
		<dc:creator>Solusan</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[fsck]]></category>

		<category><![CDATA[shutdown]]></category>

		<guid isPermaLink="false">http://www.solusan.com/?p=1031</guid>
		<description><![CDATA[Si quieres que el fsck se ejecute al arrancar usa:
# shutdown -r -F now
Comp&#225;rtelo!
]]></description>
			<content:encoded><![CDATA[<p>Si quieres que el fsck se ejecute al arrancar usa:</p>
<p><code># shutdown -r -F now</code></p>
<p class="akst_link"><a target="_blank" href="http://www.solusan.com/?p=1031&amp;akst_action=share-this"  title="Comparte esta publicaci&oacute;n en technorati, meneame, etc." id="akst_link_1031" class="akst_share_link" rel="nofollow">Comp&aacute;rtelo!</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://www.solusan.com/reiniciar-y-reparar-discos-tip.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Si te molesta mod_security</title>
		<link>http://www.solusan.com/si-te-molesta-mod_security.html</link>
		<comments>http://www.solusan.com/si-te-molesta-mod_security.html#comments</comments>
		<pubDate>Fri, 06 Jun 2008 07:05:40 +0000</pubDate>
		<dc:creator>Solusan</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.solusan.com/?p=1029</guid>
		<description><![CDATA[Alguna vez ha pasado que mod_security en un servidor pueda molestar a alguna aplicación de usuario.
Esto se soluciona de la siguiente manera:
En el archivo whitelist.conf alojad en /usr/local/apache/conf/modsec2/
Se aplica la siguiente regla:
[root@servidormolon] modsec2 &#62;&#62; ls
exclude.conf  rootkits.conf  whitelist.conf
# vim whitelist.conf

[-]?View Code BASHSecRule SERVER_NAME &#34;dominioquemolesta&#34; phase:1,nolog,allow,ctl:ruleEngine=Off

Y listos  
Slàn!
Comp&#225;rtelo!
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.solusan.com/wp-content/2008/06/bluebank_deploy.gif"><img class="alignnone size-thumbnail wp-image-1030 alignright" style="float: right;" title="bluebank_deploy" src="http://www.solusan.com/wp-content/2008/06/bluebank_deploy-150x150.gif" alt="" width="150" height="150" /></a>Alguna vez ha pasado que mod_security en un servidor pueda molestar a alguna aplicación de usuario.</p>
<p>Esto se soluciona de la siguiente manera:</p>
<p>En el archivo <strong>whitelist.conf</strong> alojad en /usr/local/apache/conf/modsec2/</p>
<p>Se aplica la siguiente regla:</p>
<p>[root@servidormolon] modsec2 &gt;&gt; ls<br />
exclude.conf  rootkits.conf  whitelist.conf</p>
<p># vim whitelist.conf</p>

<div id="wp_codebox_msgheader"><span class="right"><a href="javascript:;" onclick="toggle_collapse('p10294');">[<span id="p10294_symbol">-</span>]</a><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1029code4'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div id="wp_codebox"><table width="100%" ><tr id="p10294"><td class="code" id="p1029code4"><pre class="bash">SecRule SERVER_NAME <span style="color: #ff0000;">&quot;dominioquemolesta&quot;</span> phase:<span style="color: #000000;">1</span>,nolog,allow,ctl:<span style="color: #007800;">ruleEngine=</span>Off</pre></td></tr></table></div>

<p>Y listos <img src='http://www.solusan.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Slàn!</p>
<p class="akst_link"><a target="_blank" href="http://www.solusan.com/?p=1029&amp;akst_action=share-this"  title="Comparte esta publicaci&oacute;n en technorati, meneame, etc." id="akst_link_1029" class="akst_share_link" rel="nofollow">Comp&aacute;rtelo!</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://www.solusan.com/si-te-molesta-mod_security.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Vi Cheat Sheet</title>
		<link>http://www.solusan.com/vi-cheat-sheet.html</link>
		<comments>http://www.solusan.com/vi-cheat-sheet.html#comments</comments>
		<pubDate>Wed, 04 Jun 2008 07:15:54 +0000</pubDate>
		<dc:creator>Solusan</dc:creator>
		
		<category><![CDATA[Geek Works]]></category>

		<category><![CDATA[vi]]></category>

		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.solusan.com/?p=1027</guid>
		<description><![CDATA[Me he visto en la obligación moral de reproducir esto que a veces se me va la bola con según que instrucciones y esto va muy bien.
Slàn!
Vi Cheat Sheet





Modes
Quitting
Inserting Text
Motion
Deleting Text
Yanking
Changing Text
Putting Text
Buffers




Markers
Searching
Replacing Text
Regular Expressions
Counts
Ranges
Files
Other






Click here for the Advanced VI Cheatsheet
 
 
 
Modes
 




Vi has two modes insertion mode and command mode. The editor [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.solusan.com/wp-content/2008/06/linux-ass-2large.jpg"><img class="alignnone size-thumbnail wp-image-1028 alignright" style="float: right;" title="linux-ass-2large" src="http://www.solusan.com/wp-content/2008/06/linux-ass-2large-150x150.jpg" alt="" width="121" height="121" /></a>Me he visto en la obligación moral de reproducir esto que a veces se me va la bola con según que instrucciones y esto va muy bien.</p>
<p>Slàn!</p>
<h1><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"><span style="color: #660000;">Vi Cheat Sheet</span></span></h1>
<table border="0">
<tbody>
<tr>
<td align="top">
<ul>
<li><a href="#mode">Modes</a></li>
<li><a href="#quit">Quitting</a></li>
<li><a href="#insert">Inserting Text</a></li>
<li><a href="#motion">Motion</a></li>
<li><a href="#delete">Deleting Text</a></li>
<li><a href="#yank">Yanking</a></li>
<li><a href="#change">Changing Text</a></li>
<li><a href="#put">Putting Text</a></li>
<li><a href="#buffer">Buffers</a></li>
</ul>
</td>
<td align="top">
<ul>
<li><a href="#mark">Markers</a></li>
<li><a href="#search">Searching</a></li>
<li><a href="#replace">Replacing Text</a></li>
<li><a href="#re">Regular Expressions</a></li>
<li><a href="#count">Counts</a></li>
<li><a href="#range">Ranges</a></li>
<li><a href="#file">Files</a></li>
<li><a href="#other">Other</a></li>
</ul>
</td>
</tr>
</tbody>
</table>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"><br />
<a title="http://www.lagmonster.org/docs/vi2.html" href="http://www.lagmonster.org/docs/vi2.html" target="_blank">Click here</a> for the Advanced VI Cheatsheet</span><span id="more-1027"></span></p>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"> </span></p>
<hr /><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"> </span></p>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"> <a name="mode"></a></span></p>
<h2><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"><span style="color: #660000;">Modes</span></span></h2>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"> </span></p>
<hr />
<table border="0">
<tbody>
<tr>
<td>Vi has two modes insertion mode and command mode. The editor begins in command mode, where the cursor movement and text deletion and pasting occur. Insertion mode begins upon entering an insertion or change command. [ESC] returns the editor to command mode (where you can quit, for example by typing :q!). Most commands execute as soon as you type them except for &#8220;colon&#8221; commands which execute when you press the ruturn key.</td>
</tr>
</tbody>
</table>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"> <a name="quit"></a></span></p>
<h2><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"><span style="color: #660000;">Quitting</span></span></h2>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"> </span></p>
<hr />
<table border="1">
<tbody>
<tr>
<td>:&#120;</td>
<td>Exit, saving changes</td>
</tr>
<tr>
<td>:q</td>
<td>Exit as long as there have been no changes</td>
</tr>
<tr>
<td>ZZ</td>
<td>Exit and save changes if any have been made</td>
</tr>
<tr>
<td>:q!</td>
<td>Exit and ignore any changes</td>
</tr>
</tbody>
</table>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"> <a name="insert"></a></span></p>
<h2><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"><span style="color: #660000;">Inserting Text</span></span></h2>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"> </span></p>
<hr />
<table border="1">
<tbody>
<tr>
<td>i</td>
<td>Insert before cursor</td>
</tr>
<tr>
<td>I</td>
<td>Insert before line</td>
</tr>
<tr>
<td>a</td>
<td>Append after cursor</td>
</tr>
<tr>
<td>A</td>
<td>Append after line</td>
</tr>
<tr>
<td>o</td>
<td>Open a new line after current line</td>
</tr>
<tr>
<td>O</td>
<td>Open a new line before current line</td>
</tr>
<tr>
<td>r</td>
<td>Replace one character</td>
</tr>
<tr>
<td>R</td>
<td>Replace many characters</td>
</tr>
</tbody>
</table>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"> <a name="motion"></a></span></p>
<h2><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"><span style="color: #660000;">Motion</span></span></h2>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"> </span></p>
<hr />
<table border="1">
<tbody>
<tr>
<td>h</td>
<td>Move left</td>
</tr>
<tr>
<td>j</td>
<td>Move down</td>
</tr>
<tr>
<td>k</td>
<td>Move up</td>
</tr>
<tr>
<td>l</td>
<td>Move right</td>
</tr>
<tr>
<td>w</td>
<td>Move to next word</td>
</tr>
<tr>
<td>W</td>
<td>Move to next blank delimited word</td>
</tr>
<tr>
<td>b</td>
<td>Move to the beginning of the word</td>
</tr>
<tr>
<td>B</td>
<td>Move to the beginning of blank delimted word</td>
</tr>
<tr>
<td>e</td>
<td>Move to the end of the word</td>
</tr>
<tr>
<td>E</td>
<td>Move to the end of Blank delimited word</td>
</tr>
<tr>
<td>(</td>
<td>Move a sentance back</td>
</tr>
<tr>
<td>)</td>
<td>Move a sentance forward</td>
</tr>
<tr>
<td>{</td>
<td>Move a paragraph back</td>
</tr>
<tr>
<td>}</td>
<td>Move a paragraph forward</td>
</tr>
<tr>
<td>0</td>
<td>Move to the begining of the line</td>
</tr>
<tr>
<td>$</td>
<td>Move to the end of the line</td>
</tr>
<tr>
<td>1G</td>
<td>Move to the first line of the file</td>
</tr>
<tr>
<td>G</td>
<td>Move to the last line of the file</td>
</tr>
<tr>
<td><span style="color: blue;">n</span>G</td>
<td>Move to <span style="color: blue;">n</span>th line of the file</td>
</tr>
<tr>
<td>:<span style="color: blue;">n</span></td>
<td>Move to <span style="color: blue;">n</span>th line of the file</td>
</tr>
<tr>
<td>f<span style="color: green;">c</span></td>
<td>Move forward to <span style="color: green;">c</span></td>
</tr>
<tr>
<td>F<span style="color: green;">c</span></td>
<td>Move back to <span style="color: green;">c</span></td>
</tr>
<tr>
<td>H</td>
<td>Move to top of screen</td>
</tr>
<tr>
<td>M</td>
<td>Move to middle of screen</td>
</tr>
<tr>
<td>L</td>
<td>Move to botton of screen</td>
</tr>
<tr>
<td>%</td>
<td>Move to associated ( ), { }, [ ]</td>
</tr>
</tbody>
</table>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"> <a name="delete"></a></span></p>
<h2><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"><span style="color: #660000;">Deleting Text</span></span></h2>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"> </span></p>
<hr />
<table border="0">
<tbody>
<tr>
<td>Almost all deletion commands are performed by typing d followed by a motion. For example, dw deletes a word. A few other deletes are:</td>
</tr>
</tbody>
</table>
<table border="1">
<tbody>
<tr>
<td>x</td>
<td>Delete character to the right of cursor</td>
</tr>
<tr>
<td>X</td>
<td>Delete character to the left of cursor</td>
</tr>
<tr>
<td>D</td>
<td>Delete to the end of the line</td>
</tr>
<tr>
<td>dd</td>
<td>Delete current line</td>
</tr>
<tr>
<td>:d</td>
<td>Delete current line</td>
</tr>
</tbody>
</table>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"> <a name="yank"></a></span></p>
<h2><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"><span style="color: #660000;">Yanking Text</span></span></h2>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"> </span></p>
<hr />
<table border="0">
<tbody>
<tr>
<td>Like deletion, almost all yank commands are performed by typing y followed by a motion. For example, y$ yanks to the end of the line. Two other yank commands are:</td>
</tr>
</tbody>
</table>
<table border="1">
<tbody>
<tr>
<td>yy</td>
<td>Yank the current line</td>
</tr>
<tr>
<td>:y</td>
<td>Yank the current line</td>
</tr>
</tbody>
</table>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"> <a name="change"></a></span></p>
<h2><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"><span style="color: #660000;">Changing text</span></span></h2>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"> </span></p>
<hr />
<table border="0">
<tbody>
<tr>
<td>The change command is a deletion command that leaves the editor in insert mode. It is performed by typing c followed by a motion. For wxample cw changes a word. A few other change commands are:</td>
</tr>
</tbody>
</table>
<table border="1">
<tbody>
<tr>
<td>C</td>
<td>Change to the end of the line</td>
</tr>
<tr>
<td>cc</td>
<td>Change the whole line</td>
</tr>
</tbody>
</table>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"> <a name="put"></a></span></p>
<h2><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"><span style="color: #660000;">Putting text</span></span></h2>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"> </span></p>
<hr />
<table border="1">
<tbody>
<tr>
<td>p</td>
<td>Put after the position or after the line</td>
</tr>
<tr>
<td>P</td>
<td>Put before the poition or before the line</td>
</tr>
</tbody>
</table>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"> <a name="buffer"></a></span></p>
<h2><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"><span style="color: #660000;">Buffers</span></span></h2>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"> </span></p>
<hr />
<table border="0">
<tbody>
<tr>
<td>Named buffers may be specified before any deletion, change, yank or put command. The general prefix has the form &#8220;c where c is any lowercase character. for example, &#8220;adw deletes a word into buffer a. It may thereafter be put back into text with an appropriate &#8220;ap.</td>
</tr>
</tbody>
</table>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"> <a name="mark"></a></span></p>
<h2><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"><span style="color: #660000;">Markers</span></span></h2>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"> </span></p>
<hr />
<table border="0">
<tbody>
<tr>
<td>Named markers may be set on any line in a file. Any lower case letter may be a marker name. Markers may also be used as limits for ranges.</td>
</tr>
</tbody>
</table>
<table border="1">
<tbody>
<tr>
<td>m<span style="color: green;">c</span></td>
<td>Set marker <span style="color: green;">c</span> on this line</td>
</tr>
<tr>
<td>`<span style="color: green;">c</span></td>
<td>Go to beginning of marker <span style="color: green;">c</span> line.</td>
</tr>
<tr>
<td>&#8216;<span style="color: green;">c</span></td>
<td>Go to first non-blank character of marker <span style="color: green;">c</span> line.</td>
</tr>
</tbody>
</table>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"> <a name="search"></a></span></p>
<h2><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"><span style="color: #660000;">Search for strings</span></span></h2>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"> </span></p>
<hr />
<table border="1">
<tbody>
<tr>
<td>/<em>string</em></td>
<td>Search forward for <em>string</em></td>
</tr>
<tr>
<td>?<em>string</em></td>
<td>Search back for <em>string</em></td>
</tr>
<tr>
<td>n</td>
<td>Search for next instance of <em>string</em></td>
</tr>
<tr>
<td>N</td>
<td>Search for previous instance of <em>string</em></td>
</tr>
</tbody>
</table>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"> <a name="replace"></a></span></p>
<h2><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"><span style="color: #660000;">Replace</span></span></h2>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"> </span></p>
<hr />
<table border="0">
<tbody>
<tr>
<td>The search and replace function is accomplished with the :s command. It is commonly used in combination with ranges or the :g command (below).</td>
</tr>
</tbody>
</table>
<table border="1">
<tbody>
<tr>
<td>:s/<em>pattern</em>/<em>string</em>/<em>flags</em></td>
<td>Replace <em>pattern</em> with <em>string</em> according to <em>flags</em>.</td>
</tr>
<tr>
<td>g</td>
<td>Flag - Replace all occurences of pattern</td>
</tr>
<tr>
<td>c</td>
<td>Flag - Confirm replaces.</td>
</tr>
<tr>
<td>&amp;</td>
<td>Repeat last :s command</td>
</tr>
</tbody>
</table>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"> <a name="re"></a></span></p>
<h2><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"><span style="color: #660000;">Regular Expressions</span></span></h2>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"> </span></p>
<hr />
<table border="1">
<tbody>
<tr>
<td>. (dot)</td>
<td>Any single character except newline</td>
</tr>
<tr>
<td>*</td>
<td>zero or more occurances of any character</td>
</tr>
<tr>
<td>[...]</td>
<td>Any single character specified in the set</td>
</tr>
<tr>
<td>[^...]</td>
<td>Any single character not specified in the set</td>
</tr>
<tr>
<td>^</td>
<td>Anchor - beginning of the line</td>
</tr>
<tr>
<td>$</td>
<td>Anchor - end of line</td>
</tr>
<tr>
<td>\&lt;</td>
<td>Anchor - begining of word</td>
</tr>
<tr>
<td>\&gt;</td>
<td>Anchor - end of word</td>
</tr>
<tr>
<td>\(&#8230;\)</td>
<td>Grouping - usually used to group conditions</td>
</tr>
<tr>
<td>\<span style="color: blue;">n</span></td>
<td>Contents of <span style="color: blue;">n</span>th grouping</td>
</tr>
</tbody>
</table>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"><br />
</span></p>
<table border="1">
<caption>[...] - Set Examples</caption>
<tbody>
<tr>
<td>[A-Z]</td>
<td>The SET from Capital A to Capital Z</td>
</tr>
<tr>
<td>[a-z]</td>
<td>The SET from lowercase a to lowercase z</td>
</tr>
<tr>
<td>[0-9]</td>
<td>The SET from 0 to 9 (All numerals)</td>
</tr>
<tr>
<td>[./=+]</td>
<td>The SET containing . (dot), / (slash), =, and +</td>
</tr>
<tr>
<td>[-A-F]</td>
<td>The SET from Capital A to Capital F and the dash (dashes must be specified first)</td>
</tr>
<tr>
<td>[0-9 A-Z]</td>
<td>The SET containing all capital letters and digits and a space</td>
</tr>
<tr>
<td>[A-Z][a-zA-Z]</td>
<td>In the first position, the SET from Capital A to Capital Z<br />
In the second character position, the SET containing all letters</td>
</tr>
</tbody>
</table>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"><br />
</span></p>
<table border="1">
<caption>Regular Expression Examples</caption>
<tbody>
<tr>
<td>/Hello/</td>
<td>Matches if the line contains the value Hello</td>
</tr>
<tr>
<td>/^TEST$/</td>
<td>Matches if the line contains TEST by itself</td>
</tr>
<tr>
<td>/^[a-zA-Z]/</td>
<td>Matches if the line starts with any letter</td>
</tr>
<tr>
<td>/^[a-z].*/</td>
<td>Matches if the first character of the line is a-z and there is at least one more of any character following it</td>
</tr>
<tr>
<td>/2134$/</td>
<td>Matches if line ends with 2134</td>
</tr>
<tr>
<td>/\(21|35\)/</td>
<td>Matches is the line contains 21 or 35<br />
Note the use of ( ) with the pipe symbol to specify the &#8216;or&#8217; condition</td>
</tr>
<tr>
<td>/[0-9]*/</td>
<td>Matches if there are zero or more numbers in the line</td>
</tr>
<tr>
<td>/^[^#]/</td>
<td>Matches if the first character is not a # in the line</td>
</tr>
<tr>
<td colspan="2">Notes:<br />
1. Regular expressions are case sensitive<br />
2. Regular expressions are to be used where <em>pattern</em> is specified</td>
</tr>
</tbody>
</table>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"> <a name="count"></a></span></p>
<h2><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"><span style="color: #660000;">Counts</span></span></h2>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"> </span></p>
<hr />
<table border="0">
<tbody>
<tr>
<td>Nearly every command may be preceded by a number that specifies how many times it is to be performed. For example, 5dw will delete 5 words and 3fe will move the cursor forward to the 3rd occurence of the letter e. Even insertions may be repeated conveniently with thismethod, say to insert the same line 100 times.</td>
</tr>
</tbody>
</table>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"> <a name="range"></a></span></p>
<h2><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"><span style="color: #660000;">Ranges</span></span></h2>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"> </span></p>
<hr />
<table border="0">
<tbody>
<tr>
<td>Ranges may precede most &#8220;colon&#8221; commands and cause them to be executed on a line or lines. For example :3,7d would delete lines 3-7. Ranges are commonly combined with the :s command to perform a replacement on several lines, as with :.,$s/pattern/string/g to make a replacement from the current line to the end of the file.</td>
</tr>
</tbody>
</table>
<table border="1">
<tbody>
<tr>
<td>:<span style="color: blue;">n</span>,<span style="color: blue;">m</span></td>
<td>Range - Lines <span style="color: blue;">n</span>-<span style="color: blue;">m</span></td>
</tr>
<tr>
<td>:.</td>
<td>Range - Current line</td>
</tr>
<tr>
<td>:$</td>
<td>Range - Last line</td>
</tr>
<tr>
<td>:&#8217;<span style="color: green;">c</span></td>
<td>Range - Marker <span style="color: green;">c</span></td>
</tr>
<tr>
<td>:%</td>
<td>Range - All lines in file</td>
</tr>
<tr>
<td>:g/<em>pattern</em>/</td>
<td>Range - All lines that contain <em>pattern</em></td>
</tr>
</tbody>
</table>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"> <a name="file"></a></span></p>
<h2><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"><span style="color: #660000;">Files</span></span></h2>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"> </span></p>
<hr />
<table border="1">
<tbody>
<tr>
<td>:w <em>file</em></td>
<td>Write to <em>file</em></td>
</tr>
<tr>
<td>:r <em>file</em></td>
<td>Read <em>file</em> in after line</td>
</tr>
<tr>
<td>:n</td>
<td>Go to next file</td>
</tr>
<tr>
<td>:p</td>
<td>Go to previos file</td>
</tr>
<tr>
<td>:e <em>file</em></td>
<td>Edit <em>file</em></td>
</tr>
<tr>
<td>!!<em>program</em></td>
<td>Replace line with output from <em>program</em></td>
</tr>
</tbody>
</table>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"> <a name="other"></a></span></p>
<h2><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"><span style="color: #660000;">Other</span></span></h2>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"> </span></p>
<hr />
<table border="1">
<tbody>
<tr>
<td>~</td>
<td>Toggle upp and lower case</td>
</tr>
<tr>
<td>J</td>
<td>Join lines</td>
</tr>
<tr>
<td>.</td>
<td>Repeat last text-changing command</td>
</tr>
<tr>
<td>u</td>
<td>Undo last change</td>
</tr>
<tr>
<td>U</td>
<td>Undo all changes to line</td>
</tr>
</tbody>
</table>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"> <a href="#formtop">Return to the top</a><br />
</span></p>
<hr /><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"><span style="font-size: xx-small;">Page produced by Lagmonster - Oct 2000</span></span></p>
<p>Vía: <a title="http://www.lagmonster.org/docs/vi2.html" href="http://www.lagmonster.org/docs/vi2.html">http://www.lagmonster.org/docs/vi2.html</a></p>
<p class="akst_link"><a target="_blank" href="http://www.solusan.com/?p=1027&amp;akst_action=share-this"  title="Comparte esta publicaci&oacute;n en technorati, meneame, etc." id="akst_link_1027" class="akst_share_link" rel="nofollow">Comp&aacute;rtelo!</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://www.solusan.com/vi-cheat-sheet.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Cómo añadir usuarios con MySQL?</title>
		<link>http://www.solusan.com/como-anadir-usuarios-con-mysql.html</link>
		<comments>http://www.solusan.com/como-anadir-usuarios-con-mysql.html#comments</comments>
		<pubDate>Tue, 03 Jun 2008 11:49:34 +0000</pubDate>
		<dc:creator>Solusan</dc:creator>
		
		<category><![CDATA[Geek Works]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.solusan.com/?p=1018</guid>
		<description><![CDATA[He aquí un ejemplo de lo que hice recientemente para crear una nueva base de datos y usuario. Por supuesto, el nombre de base de datos, el nombre de usuario y contraseña han sido cambiados:

[-]?View Code BASHmysql -u root -p
&#40;here I enter 'my_root_password' to get through the mysql prompt&#41;


[-]?View Code MYSQLmysql &#62; create database my_database;


[-]?View [...]]]></description>
			<content:encoded><![CDATA[<p>He aquí un ejemplo de lo que hice recientemente para crear una nueva base de datos y usuario. Por supuesto, el nombre de base de datos, el nombre de usuario y contraseña han sido cambiados:</p>

<div id="wp_codebox_msgheader"><span class="right"><a href="javascript:;" onclick="toggle_collapse('p10188');">[<span id="p10188_symbol">-</span>]</a><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1018code8'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div id="wp_codebox"><table width="100%" ><tr id="p10188"><td class="code" id="p1018code8"><pre class="bash">mysql -u root -p
<span style="color: #7a0874; font-weight: bold;">&#40;</span>here I enter <span style="color: #ff0000;">'my_root_password'</span> to get through the mysql prompt<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></td></tr></table></div>


<div id="wp_codebox_msgheader"><span class="right"><a href="javascript:;" onclick="toggle_collapse('p10189');">[<span id="p10189_symbol">-</span>]</a><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1018code9'); return false;">View Code</a> MYSQL</span><div class="codebox_clear"></div></div><div id="wp_codebox"><table width="100%" ><tr id="p10189"><td class="code" id="p1018code9"><pre class="mysql">mysql <span style="color: #66cc66;">&gt;</span> <span style="color: #993333; font-weight: bold;">create database</span> my_database;</pre></td></tr></table></div>


<div id="wp_codebox_msgheader"><span class="right"><a href="javascript:;" onclick="toggle_collapse('p101810');">[<span id="p101810_symbol">-</span>]</a><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1018code10'); return false;">View Code</a> MYSQL</span><div class="codebox_clear"></div></div><div id="wp_codebox"><table width="100%" ><tr id="p101810"><td class="code" id="p1018code10"><pre class="mysql">mysql <span style="color: #66cc66;">&gt;</span> <span style="color: #993333; font-weight: bold;">GRANT</span> ALL <span style="color: #993333; font-weight: bold;">PRIVILEGES</span> ON my_database.<span style="color: #66cc66;">*</span> TO <span style="color: #ff0000;">'my_user'</span>@<span style="color: #ff0000;">'localhost'</span> IDENTIFIED <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">'my_password'</span>;</pre></td></tr></table></div>

<div id="result_box" dir="ltr">Ver estas dos direcciones URL para obtener información acerca de agregar y eliminar usuarios:</div>
<ul>
<li><a href="http://dev.mysql.com/doc/mysql/en/Adding_users.html" target="_blank">How to create a MySQL user account</a></li>
<li><a href="http://dev.mysql.com/doc/mysql/en/DROP_USER.html" target="_blank">How to drop a MySQL user</a></li>
</ul>
<p class="akst_link"><a target="_blank" href="http://www.solusan.com/?p=1018&amp;akst_action=share-this"  title="Comparte esta publicaci&oacute;n en technorati, meneame, etc." id="akst_link_1018" class="akst_share_link" rel="nofollow">Comp&aacute;rtelo!</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://www.solusan.com/como-anadir-usuarios-con-mysql.html/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
