<?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>pra não esquecer... &#187; shell</title>
	<atom:link href="http://www.republicavirtual.com.br/blog/tag/shell/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.republicavirtual.com.br/blog</link>
	<description></description>
	<lastBuildDate>Mon, 12 Jul 2010 12:49:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>shell error redirect</title>
		<link>http://www.republicavirtual.com.br/blog/2008/11/24/shell-error-redirect/</link>
		<comments>http://www.republicavirtual.com.br/blog/2008/11/24/shell-error-redirect/#comments</comments>
		<pubDate>Mon, 24 Nov 2008 21:32:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[output error]]></category>
		<category><![CDATA[redirect]]></category>

		<guid isPermaLink="false">http://www.republicavirtual.com.br/blog/?p=328</guid>
		<description><![CDATA[2>&#038;1 Character Action &#62; Redirect standard output 2&#62; Redirect standard error 2&#62;&#38;1 Redirect standard error to standard output &#60; Redirect standard input &#124; Pipe standard output to another command &#62;&#62; Append to standard output 2&#62;&#38;1&#124; Pipe standard output and standard error to another command]]></description>
			<content:encoded><![CDATA[<p>2>&#038;1</p>
<p><TABLE BORDER=1><TR VALIGN=TOP><TH><P> Character</P><br />
</TH><TH><P> Action</P><br />
</TH></TR><TR VALIGN=TOP><TD><P> <CODE>&gt;</CODE></P></p>
<p></TD><TD><P> <A NAME=MARKER-2-341></A>Redirect standard output</P><br />
</TD></TR><TR VALIGN=TOP><TD><P> <CODE>2&gt;</CODE></P><br />
</TD><TD><P> Redirect standard error</P><br />
</TD></TR><TR VALIGN=TOP><TD><P> <CODE>2&gt;&amp;1</CODE></P><br />
</TD><TD><P> Redirect standard error to standard output</P><br />
</TD></TR><TR VALIGN=TOP><TD><P> <CODE>&lt;</CODE></P></p>
<p></TD><TD><P> Redirect standard input</P><br />
</TD></TR><TR VALIGN=TOP><TD><P> <CODE>|</CODE></P><br />
</TD><TD><P> Pipe standard output to another command</P><br />
</TD></TR><TR VALIGN=TOP><TD><P> <CODE>&gt;&gt;</CODE></P><br />
</TD><TD><P> Append to standard output</P><br />
</TD></TR><TR VALIGN=TOP><TD><P> <CODE>2&gt;&amp;1|</CODE></P></p>
<p></TD><TD><P> Pipe standard output and standard error to another command</P><br />
</TD></TR></TABLE></p>
]]></content:encoded>
			<wfw:commentRss>http://www.republicavirtual.com.br/blog/2008/11/24/shell-error-redirect/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ver dados placa mãe no linux</title>
		<link>http://www.republicavirtual.com.br/blog/2008/09/19/ver-dados-placa-mae-no-linux/</link>
		<comments>http://www.republicavirtual.com.br/blog/2008/09/19/ver-dados-placa-mae-no-linux/#comments</comments>
		<pubDate>Fri, 19 Sep 2008 23:08:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[bios]]></category>
		<category><![CDATA[motherboard]]></category>
		<category><![CDATA[placa mãe]]></category>

		<guid isPermaLink="false">http://www.republicavirtual.com.br/blog/?p=223</guid>
		<description><![CDATA[dmidecode http://www.nongnu.org/dmidecode/]]></description>
			<content:encoded><![CDATA[<p>dmidecode </p>
<p><a href="http://www.nongnu.org/dmidecode/">http://www.nongnu.org/dmidecode/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.republicavirtual.com.br/blog/2008/09/19/ver-dados-placa-mae-no-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>redirecionando erros shell</title>
		<link>http://www.republicavirtual.com.br/blog/2008/09/15/redirecionando-erros-shell/</link>
		<comments>http://www.republicavirtual.com.br/blog/2008/09/15/redirecionando-erros-shell/#comments</comments>
		<pubDate>Mon, 15 Sep 2008 18:31:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[redirecionar erro]]></category>

		<guid isPermaLink="false">http://www.republicavirtual.com.br/blog/?p=219</guid>
		<description><![CDATA[puta merda, sempre esqueço&#8230; # comando 2>&#038;1]]></description>
			<content:encoded><![CDATA[<p>puta merda, sempre esqueço&#8230;</p>
<p># comando 2>&#038;1</p>
]]></content:encoded>
			<wfw:commentRss>http://www.republicavirtual.com.br/blog/2008/09/15/redirecionando-erros-shell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>colocando firebird no path de execução</title>
		<link>http://www.republicavirtual.com.br/blog/2008/08/29/colocando-firebird-no-path-de-execucao/</link>
		<comments>http://www.republicavirtual.com.br/blog/2008/08/29/colocando-firebird-no-path-de-execucao/#comments</comments>
		<pubDate>Fri, 29 Aug 2008 19:21:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[profile]]></category>

		<guid isPermaLink="false">http://www.republicavirtual.com.br/blog/?p=209</guid>
		<description><![CDATA[colocar mais um path nos bins, coisa que o cara as vezes precisa fazer rápido e não se lembra&#8230; /etc/profile.env]]></description>
			<content:encoded><![CDATA[<p>colocar mais um path nos bins,<br />
coisa que o cara as vezes precisa fazer rápido e não se lembra&#8230;</p>
<p>/etc/profile.env</p>
]]></content:encoded>
			<wfw:commentRss>http://www.republicavirtual.com.br/blog/2008/08/29/colocando-firebird-no-path-de-execucao/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>dicas/atalhos shell/bash</title>
		<link>http://www.republicavirtual.com.br/blog/2008/07/20/dicas-atalhos-shell-bash/</link>
		<comments>http://www.republicavirtual.com.br/blog/2008/07/20/dicas-atalhos-shell-bash/#comments</comments>
		<pubDate>Sun, 20 Jul 2008 02:53:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[atalhos]]></category>
		<category><![CDATA[bash]]></category>

		<guid isPermaLink="false">http://www.republicavirtual.com.br/blog/?p=150</guid>
		<description><![CDATA[Ctrl+A = Inicio comando Ctrl+E = Fim comando Ctrl+W = Deleta primeira palavra antes do cursor Ctrl+K = Deleta tudo antes do cursor ALT+D = Deleta primeira palavra depois do cursor Ctrl+U = Deleta tudo depois do cursor Ctrl+Y = Desfaz delete ALT+F = Avança uma palavra/argumento (front) ALT+B = Volta uma palavra/argumento (back) ALT+T [...]]]></description>
			<content:encoded><![CDATA[<p>Ctrl+A = Inicio comando<br />
Ctrl+E = Fim comando<br />
Ctrl+W = Deleta primeira palavra antes do cursor<br />
Ctrl+K = Deleta tudo antes do cursor<br />
ALT+D = Deleta primeira palavra depois do cursor<br />
Ctrl+U = Deleta tudo depois do cursor<br />
Ctrl+Y = Desfaz delete<br />
ALT+F = Avança uma palavra/argumento (front)<br />
ALT+B = Volta uma palavra/argumento (back)<br />
ALT+T = Troca palavra/argumento pelo anterior<br />
----<br />
Ctrl+R = Procura na lista de comandos já executados (apertando novamente, volta mais uma)<br />
Ctrl+L = Clear<br />
Ctrl+D = Logout<br />
----<br />
troca case de palavra, com o cursor antes da palavra<br />
ALT+L (troca para minusculas, lowcase)<br />
ALT+U (troca para maiusculas, uppercase)<br />
ALT+C (coloca a primeira para maiscula)(<br />
----<br />
aumentar o número de comandos armazenados no history colocando no .bash_profile:<br />
HISTFILESIZE=1000000000<br />
HISTSIZE=1000000<br />
----<br />
Uma outra coisa ótima é o bash_completion, tipo escreve tar [tab][tab], ele da a lista de argumentos... mto bom<br />
pra instalar</p>
<div class="igBar"><span id="lcode-2"><a href="#" onclick="javascript:showPlainTxt('code-2'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-2">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">vi /etc/bash.<span style="">bashrc</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Descomente as <span style="color:#800000;color:#800000;">3</span> últimas linhas ficando assim:</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"># enable bash completion in interactive shells</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">if <span style="color:#006600; font-weight:bold;">&#91;</span> -f /etc/bash_completion <span style="color:#006600; font-weight:bold;">&#93;</span>; then</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">. /etc/bash_completion</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">fi</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">depois:</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">bash </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>se não tiver instalado no seu sistema, baixe em:</p>
<p>http://www.caliban.org/bash/index.shtml#completion</p>
<p>----<br />
calculando na shell,<br />
echo $((154*1024*1024))</p>
]]></content:encoded>
			<wfw:commentRss>http://www.republicavirtual.com.br/blog/2008/07/20/dicas-atalhos-shell-bash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>acentuação shell</title>
		<link>http://www.republicavirtual.com.br/blog/2008/05/30/acentuacao-shell/</link>
		<comments>http://www.republicavirtual.com.br/blog/2008/05/30/acentuacao-shell/#comments</comments>
		<pubDate>Sat, 31 May 2008 00:52:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[acentuação]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[charset]]></category>

		<guid isPermaLink="false">http://www.republicavirtual.com.br/blog/?p=127</guid>
		<description><![CDATA[editar /etc/bashrc e adicionar: PLAIN TEXT CODE: LANG=pt_BR LC_ALL=pt_BR LC_CTYPE=ISO-8859-1 LESSCHARSET=latin1 export LANG LC_ALL LC_CTYPE LESSCHARSET]]></description>
			<content:encoded><![CDATA[<p>editar /etc/bashrc<br />
e adicionar:</p>
<div class="igBar"><span id="lcode-4"><a href="#" onclick="javascript:showPlainTxt('code-4'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-4">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">LANG=pt_BR</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">LC_ALL=pt_BR</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">LC_CTYPE=ISO-<span style="color:#800000;color:#800000;">8859</span>-<span style="color:#800000;color:#800000;">1</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">LESSCHARSET=latin1</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">export LANG LC_ALL LC_CTYPE LESSCHARSET </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.republicavirtual.com.br/blog/2008/05/30/acentuacao-shell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>imprimindo colorido em shell com php</title>
		<link>http://www.republicavirtual.com.br/blog/2008/05/15/imprimindo-colorido-em-shell-com-php/</link>
		<comments>http://www.republicavirtual.com.br/blog/2008/05/15/imprimindo-colorido-em-shell-com-php/#comments</comments>
		<pubDate>Thu, 15 May 2008 04:50:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[color]]></category>
		<category><![CDATA[colorido]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://www.republicavirtual.com.br/blog/?p=114</guid>
		<description><![CDATA[fiz rapidinho, nao enche... PLAIN TEXT CODE: function echo_cor&#40;$msg, $cor="00;32"&#41;&#123; &#160; &#160; if&#40;$cor == 'azul'&#41;&#160; $cor = "00;34"; &#160; &#160; if&#40;$cor == 'preto'&#41; $cor = "00;30"; &#160; &#160; if&#40;$cor == 'verde'&#41; $cor = "00;32"; &#160; &#160; if&#40;$cor == 'vermelho'&#41; $cor = "00;31"; &#160; &#160; echo "\033[".$cor."m".$msg."\033[00;37m"; &#125; echo colorido no shell! lindo! =)]]></description>
			<content:encoded><![CDATA[<p>fiz rapidinho, nao enche...</p>
<div class="igBar"><span id="lcode-6"><a href="#" onclick="javascript:showPlainTxt('code-6'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-6">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">function echo_cor<span style="color:#006600; font-weight:bold;">&#40;</span>$msg, $cor=<span style="color:#CC0000;">"00;32"</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; if<span style="color:#006600; font-weight:bold;">&#40;</span>$cor == <span style="color:#CC0000;">'azul'</span><span style="color:#006600; font-weight:bold;">&#41;</span>&nbsp; $cor = <span style="color:#CC0000;">"00;34"</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; if<span style="color:#006600; font-weight:bold;">&#40;</span>$cor == <span style="color:#CC0000;">'preto'</span><span style="color:#006600; font-weight:bold;">&#41;</span> $cor = <span style="color:#CC0000;">"00;30"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; if<span style="color:#006600; font-weight:bold;">&#40;</span>$cor == <span style="color:#CC0000;">'verde'</span><span style="color:#006600; font-weight:bold;">&#41;</span> $cor = <span style="color:#CC0000;">"00;32"</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; if<span style="color:#006600; font-weight:bold;">&#40;</span>$cor == <span style="color:#CC0000;">'vermelho'</span><span style="color:#006600; font-weight:bold;">&#41;</span> $cor = <span style="color:#CC0000;">"00;31"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; echo <span style="color:#CC0000;">"<span style="color:#000099; font-weight:bold;">\0</span>33["</span>.$cor.<span style="color:#CC0000;">"m"</span>.$msg.<span style="color:#CC0000;">"<span style="color:#000099; font-weight:bold;">\0</span>33[00;37m"</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>echo colorido no shell! lindo! =)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.republicavirtual.com.br/blog/2008/05/15/imprimindo-colorido-em-shell-com-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
