<?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; bash</title>
	<atom:link href="http://www.republicavirtual.com.br/blog/tag/bash/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.republicavirtual.com.br/blog</link>
	<description></description>
	<lastBuildDate>Mon, 28 Nov 2011 14:31:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<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>Felipe Olivaes</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>Felipe Olivaes</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>
	</channel>
</rss>

