<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Tips For Linux site news</title><link>http://tipsforlinux.com/tips/</link><description>Updates on changes and additions to tipsforlinux.com.</description><language>en-us</language><lastBuildDate>Wed, 06 Mar 2013 00:00:00 -0300</lastBuildDate><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/TipsForLinux" /><feedburner:info uri="tipsforlinux" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:browserFriendly></feedburner:browserFriendly><item><title>Site download with wget</title><link>http://tipsforlinux.com/tips/read/184/site-download-with-wget</link><description>wget -m -F -p -np -k -erobots=off -U mozilla --limit-rate=100K --wait=2 --html-extension http://blog.gustavohenrique.net</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">gustavo</dc:creator><pubDate>Wed, 06 Mar 2013 00:00:00 -0300</pubDate><guid>http://tipsforlinux.com/tips/read/184/site-download-with-wget</guid></item><item><title>Clean all log files</title><link>http://tipsforlinux.com/tips/read/183/clean-all-log-files</link><description>find . -size +1M -iname \*.log | xargs -i bash -c "echo &gt; {}"</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">gustavo</dc:creator><pubDate>Sun, 09 Dec 2012 00:00:00 -0200</pubDate><guid>http://tipsforlinux.com/tips/read/183/clean-all-log-files</guid></item><item><title>Compare the contents of 2 dirs</title><link>http://tipsforlinux.com/tips/read/148/compare-the-contents-of-2-dirs</link><description>comm -3 &lt;(ls -1 dir1) &lt;(ls -1 dir2)
# Show only 2 columns, each for files unique to the directory</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">gustavo</dc:creator><pubDate>Thu, 08 Nov 2012 00:00:00 -0200</pubDate><guid>http://tipsforlinux.com/tips/read/148/compare-the-contents-of-2-dirs</guid></item><item><title>Criando arquivo de texto sem editor</title><link>http://tipsforlinux.com/tips/read/144/criando-arquivo-de-texto-sem-editor</link><description>cat &gt; arquivo.txt
teste
1, 2, 3 testando
&lt;CTRL&gt;&lt;D&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">gustavo</dc:creator><pubDate>Tue, 06 Nov 2012 00:00:00 -0200</pubDate><guid>http://tipsforlinux.com/tips/read/144/criando-arquivo-de-texto-sem-editor</guid></item><item><title>Descobrindo versão do linux</title><link>http://tipsforlinux.com/tips/read/143/descobrindo-versao-do-linux</link><description>cat /etc/[A-Za-z]*[_-][rv]e[lr]*
cat /etc/issue
uname -a
lsb_release -a #ubuntu somente
</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">gustavo</dc:creator><pubDate>Tue, 06 Nov 2012 00:00:00 -0200</pubDate><guid>http://tipsforlinux.com/tips/read/143/descobrindo-versao-do-linux</guid></item><item><title>Random line from the file</title><link>http://tipsforlinux.com/tips/read/136/random-line-from-the-file</link><description>shuf -n1 file.txt</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">gustavo</dc:creator><pubDate>Thu, 25 Oct 2012 00:00:00 -0200</pubDate><guid>http://tipsforlinux.com/tips/read/136/random-line-from-the-file</guid></item><item><title>Apache Archiva lock user guest</title><link>http://tipsforlinux.com/tips/read/135/apache-archiva-lock-user-guest</link><description>$ vim glassfish_2.1/domains/archiva/lib/classes/org/apache/maven/archiva/security.properties

security.policy.password.expiration.days=999</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">gustavo</dc:creator><pubDate>Wed, 24 Oct 2012 00:00:00 -0200</pubDate><guid>http://tipsforlinux.com/tips/read/135/apache-archiva-lock-user-guest</guid></item><item><title>Count total string in file using grep</title><link>http://tipsforlinux.com/tips/read/134/count-total-string-in-file-using-grep</link><description># number of lines that contains STRING
grep -c STRING file.txt

# number of word STRING
grep -wc STRING file.txt</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">gustavo</dc:creator><pubDate>Tue, 23 Oct 2012 00:00:00 -0200</pubDate><guid>http://tipsforlinux.com/tips/read/134/count-total-string-in-file-using-grep</guid></item><item><title>Tecla SysRQ</title><link>http://tipsforlinux.com/tips/read/133/tecla-sysrq</link><description>Para ativar:
echo "1" &gt; /proc/sys/kernel/sysrq

Combinacoes:
-k	Mata todos os processos sendo executados na console virtual ativa.
-s	T</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">gustavo</dc:creator><pubDate>Tue, 23 Oct 2012 00:00:00 -0200</pubDate><guid>http://tipsforlinux.com/tips/read/133/tecla-sysrq</guid></item><item><title>Fork bomb</title><link>http://tipsforlinux.com/tips/read/132/fork-bomb</link><description>|:(){:|:&amp;};:
# it crashes the system</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">gustavo</dc:creator><pubDate>Tue, 23 Oct 2012 00:00:00 -0200</pubDate><guid>http://tipsforlinux.com/tips/read/132/fork-bomb</guid></item></channel></rss>
