<?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: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/" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Linux Ask!</title>
	
	<link>http://www.linuxask.com</link>
	<description>Linux Ask! is a Q &amp; A web site specific for Linux related questions such as how to use common Linux commands.</description>
	<lastBuildDate>Wed, 16 May 2012 05:27:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/linuxask" /><feedburner:info uri="linuxask" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.0/</creativeCommons:license><item>
		<title>How to push to origin but a different branch using Git</title>
		<link>http://feedproxy.google.com/~r/linuxask/~3/PE3rlwmyP-4/how-to-push-to-origin-but-a-different-branch-using-git</link>
		<comments>http://www.linuxask.com/questions/how-to-push-to-origin-but-a-different-branch-using-git#comments</comments>
		<pubDate>Wed, 16 May 2012 05:27:25 +0000</pubDate>
		<dc:creator>Linux Ask!</dc:creator>
				<category><![CDATA[Git]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=3831</guid>
		<description><![CDATA[How to push to origin but a different branch using Git Answer: Assume you normally push your local changes to the remote's master branch, but what if you want to push the changes into another branch (e.g. testing)? You can easily do this by using the command: # git push origin master:testing Related posts: Create <a href='http://www.linuxask.com/questions/how-to-push-to-origin-but-a-different-branch-using-git'>[...]</a>
Related posts:<ol>
<li><a href='http://www.linuxask.com/questions/create-a-new-branch-in-git' rel='bookmark' title='Create a new branch in Git'>Create a new branch in Git</a></li>
<li><a href='http://www.linuxask.com/questions/updating-a-local-branch-from-the-remote-server-using-git' rel='bookmark' title='Updating a local branch from the remote server using git'>Updating a local branch from the remote server using git</a></li>
<li><a href='http://www.linuxask.com/questions/merge-changes-from-trunk-into-branch-in-svn' rel='bookmark' title='Merge changes from trunk into branch in SVN'>Merge changes from trunk into branch in SVN</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>How to push to origin but a different branch using Git</p>
<p><strong>Answer:</strong></p>
<p>Assume you normally push your local changes to the remote's master branch, but what if you want to push the changes into another branch (e.g. testing)?</p>
<p>You can easily do this by using the command:</p>
<p><code># git push origin master:testing</code></p>
<p>Related posts:<ol>
<li><a href='http://www.linuxask.com/questions/create-a-new-branch-in-git' rel='bookmark' title='Create a new branch in Git'>Create a new branch in Git</a></li>
<li><a href='http://www.linuxask.com/questions/updating-a-local-branch-from-the-remote-server-using-git' rel='bookmark' title='Updating a local branch from the remote server using git'>Updating a local branch from the remote server using git</a></li>
<li><a href='http://www.linuxask.com/questions/merge-changes-from-trunk-into-branch-in-svn' rel='bookmark' title='Merge changes from trunk into branch in SVN'>Merge changes from trunk into branch in SVN</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/linuxask/~4/PE3rlwmyP-4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/how-to-push-to-origin-but-a-different-branch-using-git/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.linuxask.com/questions/how-to-push-to-origin-but-a-different-branch-using-git</feedburner:origLink></item>
		<item>
		<title>Count the number of lines contain a specific string using grep</title>
		<link>http://feedproxy.google.com/~r/linuxask/~3/I1ZtAv9k_FY/count-the-number-of-lines-contain-a-specific-string-using-grep</link>
		<comments>http://www.linuxask.com/questions/count-the-number-of-lines-contain-a-specific-string-using-grep#comments</comments>
		<pubDate>Sat, 05 May 2012 06:47:22 +0000</pubDate>
		<dc:creator>Linux Ask!</dc:creator>
				<category><![CDATA[Commands]]></category>
		<category><![CDATA[grep]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=3813</guid>
		<description><![CDATA[Count the number of lines contain a specific string using grep Answer: Usually when you want to count the number of lines contain a specific string, it is easy with the grep command, e.g. # cat input.txt &#124; grep foo &#124; wc -l But actually a more direct approach would be: # cat input.txt &#124; <a href='http://www.linuxask.com/questions/count-the-number-of-lines-contain-a-specific-string-using-grep'>[...]</a>
Related posts:<ol>
<li><a href='http://www.linuxask.com/questions/count-the-number-of-matching-lines-from-grep' rel='bookmark' title='Count the number of matching lines from grep'>Count the number of matching lines from grep</a></li>
<li><a href='http://www.linuxask.com/questions/how-to-count-the-number-of-duplicated-lines-in-a-file' rel='bookmark' title='How to count the number of duplicated lines in a file'>How to count the number of duplicated lines in a file</a></li>
<li><a href='http://www.linuxask.com/questions/count-the-total-number-of-logged-in-user' rel='bookmark' title='Count the total number of logged in user'>Count the total number of logged in user</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Count the number of lines contain a specific string using grep</p>
<p><strong>Answer:</strong></p>
<p>Usually when you want to count the number of lines contain a specific string, it is easy with the <strong>grep </strong>command, </p>
<p>e.g.</p>
<p><code># cat input.txt | grep foo | wc -l</code></p>
<p>But actually a more direct approach would be:</p>
<p><code># cat input.txt | grep -c foo</code></p>
<p>Related posts:<ol>
<li><a href='http://www.linuxask.com/questions/count-the-number-of-matching-lines-from-grep' rel='bookmark' title='Count the number of matching lines from grep'>Count the number of matching lines from grep</a></li>
<li><a href='http://www.linuxask.com/questions/how-to-count-the-number-of-duplicated-lines-in-a-file' rel='bookmark' title='How to count the number of duplicated lines in a file'>How to count the number of duplicated lines in a file</a></li>
<li><a href='http://www.linuxask.com/questions/count-the-total-number-of-logged-in-user' rel='bookmark' title='Count the total number of logged in user'>Count the total number of logged in user</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/linuxask/~4/I1ZtAv9k_FY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/count-the-number-of-lines-contain-a-specific-string-using-grep/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.linuxask.com/questions/count-the-number-of-lines-contain-a-specific-string-using-grep</feedburner:origLink></item>
		<item>
		<title>How do I make git ignore mode changes</title>
		<link>http://feedproxy.google.com/~r/linuxask/~3/zfmYdLm1q_0/how-do-i-make-git-ignore-mode-changes</link>
		<comments>http://www.linuxask.com/questions/how-do-i-make-git-ignore-mode-changes#comments</comments>
		<pubDate>Mon, 30 Apr 2012 08:44:47 +0000</pubDate>
		<dc:creator>Linux Ask!</dc:creator>
				<category><![CDATA[Git]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=3801</guid>
		<description><![CDATA[How do I make git ignore mode changes Answer: By default, if you have changed the file permission, git will also count the changes in file mode , e.g. # git diff TEST.txt diff --git a/TEST.txt b/TEST.txt old mode 100644 new mode 100755 To ignore, simply type # git config core.filemode false Related posts: How <a href='http://www.linuxask.com/questions/how-do-i-make-git-ignore-mode-changes'>[...]</a>
Related posts:<ol>
<li><a href='http://www.linuxask.com/questions/how-to-ignore-blank-lines-when-creating-the-diff-of-two-files' rel='bookmark' title='How to ignore blank lines when creating the diff of two files'>How to ignore blank lines when creating the diff of two files</a></li>
<li><a href='http://www.linuxask.com/questions/create-mysql-dump-that-ignore-duplicate-key-error-when-import-back-to-mysql' rel='bookmark' title='Create MySQL Dump that ignore duplicate key error when import back to MySQL'>Create MySQL Dump that ignore duplicate key error when import back to MySQL</a></li>
<li><a href='http://www.linuxask.com/questions/adding-the-missing-ignore-function-to-mercurial' rel='bookmark' title='Adding the missing ignore function to Mercurial'>Adding the missing ignore function to Mercurial</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>How do I make git ignore mode changes</p>
<p><strong>Answer:</strong></p>
<p>By default, if you have changed the file permission, git will also count the changes in file mode , e.g.</p>
<pre><code># git diff TEST.txt
diff --git a/TEST.txt b/TEST.txt
old mode 100644
new mode 100755</code></pre>
<p>To ignore, simply type</p>
<p><code># git config core.filemode false</code></p>
<p>Related posts:<ol>
<li><a href='http://www.linuxask.com/questions/how-to-ignore-blank-lines-when-creating-the-diff-of-two-files' rel='bookmark' title='How to ignore blank lines when creating the diff of two files'>How to ignore blank lines when creating the diff of two files</a></li>
<li><a href='http://www.linuxask.com/questions/create-mysql-dump-that-ignore-duplicate-key-error-when-import-back-to-mysql' rel='bookmark' title='Create MySQL Dump that ignore duplicate key error when import back to MySQL'>Create MySQL Dump that ignore duplicate key error when import back to MySQL</a></li>
<li><a href='http://www.linuxask.com/questions/adding-the-missing-ignore-function-to-mercurial' rel='bookmark' title='Adding the missing ignore function to Mercurial'>Adding the missing ignore function to Mercurial</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/linuxask/~4/zfmYdLm1q_0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/how-do-i-make-git-ignore-mode-changes/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.linuxask.com/questions/how-do-i-make-git-ignore-mode-changes</feedburner:origLink></item>
		<item>
		<title>Move cursor to the start of line in VIM</title>
		<link>http://feedproxy.google.com/~r/linuxask/~3/uDtjhWMYHcg/move-cursor-to-the-start-of-line-in-vim</link>
		<comments>http://www.linuxask.com/questions/move-cursor-to-the-start-of-line-in-vim#comments</comments>
		<pubDate>Thu, 26 Apr 2012 04:14:53 +0000</pubDate>
		<dc:creator>Linux Ask!</dc:creator>
				<category><![CDATA[Commands]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=3798</guid>
		<description><![CDATA[Move cursor to the start of line in VIM Answer: In our previous article, we learned how to move cursor to the end of line in VIM, so how about move to the start of the line? The answer is simple: 0 Related posts: Move cursor to the end of the line in your shell <a href='http://www.linuxask.com/questions/move-cursor-to-the-start-of-line-in-vim'>[...]</a>
Related posts:<ol>
<li><a href='http://www.linuxask.com/questions/move-cursor-to-the-end-of-the-line-in-your-shell' rel='bookmark' title='Move cursor to the end of the line in your shell'>Move cursor to the end of the line in your shell</a></li>
<li><a href='http://www.linuxask.com/questions/move-cursor-to-the-start-of-the-line-in-your-shell' rel='bookmark' title='Move cursor to the start of the line in your shell'>Move cursor to the start of the line in your shell</a></li>
<li><a href='http://www.linuxask.com/questions/move-cursor-to-the-end-of-line-in-vim' rel='bookmark' title='Move cursor to the end of line in VIM'>Move cursor to the end of line in VIM</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Move cursor to the start of line in VIM</p>
<p><strong>Answer:</strong></p>
<p>In our <a href="http://www.linuxask.com/questions/move-cursor-to-the-end-of-line-in-vim">previous article</a>, we learned how to move cursor to the end of line in VIM, so how about move to the <strong>start</strong> of the line?</p>
<p>The answer is simple: </p>
<p><code>0</code></p>
<p>Related posts:<ol>
<li><a href='http://www.linuxask.com/questions/move-cursor-to-the-end-of-the-line-in-your-shell' rel='bookmark' title='Move cursor to the end of the line in your shell'>Move cursor to the end of the line in your shell</a></li>
<li><a href='http://www.linuxask.com/questions/move-cursor-to-the-start-of-the-line-in-your-shell' rel='bookmark' title='Move cursor to the start of the line in your shell'>Move cursor to the start of the line in your shell</a></li>
<li><a href='http://www.linuxask.com/questions/move-cursor-to-the-end-of-line-in-vim' rel='bookmark' title='Move cursor to the end of line in VIM'>Move cursor to the end of line in VIM</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/linuxask/~4/uDtjhWMYHcg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/move-cursor-to-the-start-of-line-in-vim/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.linuxask.com/questions/move-cursor-to-the-start-of-line-in-vim</feedburner:origLink></item>
		<item>
		<title>Move cursor to the end of the line in your shell</title>
		<link>http://feedproxy.google.com/~r/linuxask/~3/4dIOyDPPUVY/move-cursor-to-the-end-of-the-line-in-your-shell</link>
		<comments>http://www.linuxask.com/questions/move-cursor-to-the-end-of-the-line-in-your-shell#comments</comments>
		<pubDate>Sun, 22 Apr 2012 04:07:05 +0000</pubDate>
		<dc:creator>Linux Ask!</dc:creator>
				<category><![CDATA[Commands]]></category>
		<category><![CDATA[command]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=3795</guid>
		<description><![CDATA[Move cursor to the end of the line in your shell Answer: In our previous article we learned how to move cursor to the start of the line, so how about the end of the line? Answer: Ctrl + e Related posts: Move cursor to the start of the line in your shell Move cursor <a href='http://www.linuxask.com/questions/move-cursor-to-the-end-of-the-line-in-your-shell'>[...]</a>
Related posts:<ol>
<li><a href='http://www.linuxask.com/questions/move-cursor-to-the-start-of-the-line-in-your-shell' rel='bookmark' title='Move cursor to the start of the line in your shell'>Move cursor to the start of the line in your shell</a></li>
<li><a href='http://www.linuxask.com/questions/move-cursor-to-the-end-of-line-in-vim' rel='bookmark' title='Move cursor to the end of line in VIM'>Move cursor to the end of line in VIM</a></li>
<li><a href='http://www.linuxask.com/questions/quickly-open-to-file-and-position-a-cursor-with-vim' rel='bookmark' title='Quickly open to file and position a cursor with vim'>Quickly open to file and position a cursor with vim</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Move cursor to the end of the line in your shell</p>
<p><strong>Answer:</strong></p>
<p>In our <a href="http://www.linuxask.com/questions/move-cursor-to-the-start-of-the-line-in-your-shell">previous article</a> we learned how to move cursor to the start of the line, so how about the <strong>end</strong> of the line?</p>
<p>Answer:</p>
<p><code>Ctrl + e</code></p>
<p>Related posts:<ol>
<li><a href='http://www.linuxask.com/questions/move-cursor-to-the-start-of-the-line-in-your-shell' rel='bookmark' title='Move cursor to the start of the line in your shell'>Move cursor to the start of the line in your shell</a></li>
<li><a href='http://www.linuxask.com/questions/move-cursor-to-the-end-of-line-in-vim' rel='bookmark' title='Move cursor to the end of line in VIM'>Move cursor to the end of line in VIM</a></li>
<li><a href='http://www.linuxask.com/questions/quickly-open-to-file-and-position-a-cursor-with-vim' rel='bookmark' title='Quickly open to file and position a cursor with vim'>Quickly open to file and position a cursor with vim</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/linuxask/~4/4dIOyDPPUVY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/move-cursor-to-the-end-of-the-line-in-your-shell/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.linuxask.com/questions/move-cursor-to-the-end-of-the-line-in-your-shell</feedburner:origLink></item>
		<item>
		<title>Move cursor to the start of the line in your shell</title>
		<link>http://feedproxy.google.com/~r/linuxask/~3/6NweAs9Vvic/move-cursor-to-the-start-of-the-line-in-your-shell</link>
		<comments>http://www.linuxask.com/questions/move-cursor-to-the-start-of-the-line-in-your-shell#comments</comments>
		<pubDate>Mon, 16 Apr 2012 04:06:45 +0000</pubDate>
		<dc:creator>Linux Ask!</dc:creator>
				<category><![CDATA[Commands]]></category>
		<category><![CDATA[command]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=3793</guid>
		<description><![CDATA[Move cursor to the start of the line in your shell Answer: Assume you have typed a long command, how to move to the start of the line? The answer is.. Ctrl + a Related posts: Move cursor to the end of the line in your shell Move cursor to the start of line in <a href='http://www.linuxask.com/questions/move-cursor-to-the-start-of-the-line-in-your-shell'>[...]</a>
Related posts:<ol>
<li><a href='http://www.linuxask.com/questions/move-cursor-to-the-end-of-the-line-in-your-shell' rel='bookmark' title='Move cursor to the end of the line in your shell'>Move cursor to the end of the line in your shell</a></li>
<li><a href='http://www.linuxask.com/questions/move-cursor-to-the-start-of-line-in-vim' rel='bookmark' title='Move cursor to the start of line in VIM'>Move cursor to the start of line in VIM</a></li>
<li><a href='http://www.linuxask.com/questions/move-cursor-to-the-end-of-line-in-vim' rel='bookmark' title='Move cursor to the end of line in VIM'>Move cursor to the end of line in VIM</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Move cursor to the start of the line in your shell</p>
<p><strong>Answer:</strong></p>
<p>Assume you have typed a long command, how to move to the start of the line?</p>
<p>The answer is..</p>
<p><code>Ctrl + a</code></p>
<p>Related posts:<ol>
<li><a href='http://www.linuxask.com/questions/move-cursor-to-the-end-of-the-line-in-your-shell' rel='bookmark' title='Move cursor to the end of the line in your shell'>Move cursor to the end of the line in your shell</a></li>
<li><a href='http://www.linuxask.com/questions/move-cursor-to-the-start-of-line-in-vim' rel='bookmark' title='Move cursor to the start of line in VIM'>Move cursor to the start of line in VIM</a></li>
<li><a href='http://www.linuxask.com/questions/move-cursor-to-the-end-of-line-in-vim' rel='bookmark' title='Move cursor to the end of line in VIM'>Move cursor to the end of line in VIM</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/linuxask/~4/6NweAs9Vvic" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/move-cursor-to-the-start-of-the-line-in-your-shell/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.linuxask.com/questions/move-cursor-to-the-start-of-the-line-in-your-shell</feedburner:origLink></item>
		<item>
		<title>How to disable IPv6 support in a Java program</title>
		<link>http://feedproxy.google.com/~r/linuxask/~3/z4v9F39kiNY/how-to-disable-ipv6-support-in-a-java-program</link>
		<comments>http://www.linuxask.com/questions/how-to-disable-ipv6-support-in-a-java-program#comments</comments>
		<pubDate>Fri, 13 Apr 2012 16:11:48 +0000</pubDate>
		<dc:creator>Linux Ask!</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=3748</guid>
		<description><![CDATA[How to disable IPv6 support in a Java program Answer: To completely turn off IPv6 support in Java, you can set the system property "java.net.preferIPv4Stack", e.g. # java -Djava.net.preferIPv4Stack=true ... Related posts: Disable IPv6 in Linux How to get the hostname of a local machine using Java Turn off InnoDB support in MySQL
Related posts:<ol>
<li><a href='http://www.linuxask.com/questions/disable-ipv6-in-linux' rel='bookmark' title='Disable IPv6 in Linux'>Disable IPv6 in Linux</a></li>
<li><a href='http://www.linuxask.com/questions/how-to-get-the-hostname-of-a-local-machine-using-java-2' rel='bookmark' title='How to get the hostname of a local machine using Java'>How to get the hostname of a local machine using Java</a></li>
<li><a href='http://www.linuxask.com/questions/turn-off-innodb-support-in-mysql' rel='bookmark' title='Turn off InnoDB support in MySQL'>Turn off InnoDB support in MySQL</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>How to disable IPv6 support in a Java program</p>
<p><strong>Answer:</strong></p>
<p>To completely turn off  <strong>IPv6 </strong>support in Java, you can set the system property "<strong>java.net.preferIPv4Stack</strong>", e.g.</p>
<p><code># java -Djava.net.preferIPv4Stack=true ...</code></p>
<p>Related posts:<ol>
<li><a href='http://www.linuxask.com/questions/disable-ipv6-in-linux' rel='bookmark' title='Disable IPv6 in Linux'>Disable IPv6 in Linux</a></li>
<li><a href='http://www.linuxask.com/questions/how-to-get-the-hostname-of-a-local-machine-using-java-2' rel='bookmark' title='How to get the hostname of a local machine using Java'>How to get the hostname of a local machine using Java</a></li>
<li><a href='http://www.linuxask.com/questions/turn-off-innodb-support-in-mysql' rel='bookmark' title='Turn off InnoDB support in MySQL'>Turn off InnoDB support in MySQL</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/linuxask/~4/z4v9F39kiNY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/how-to-disable-ipv6-support-in-a-java-program/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.linuxask.com/questions/how-to-disable-ipv6-support-in-a-java-program</feedburner:origLink></item>
		<item>
		<title>How to compress a directory to a zip file</title>
		<link>http://feedproxy.google.com/~r/linuxask/~3/kawJW-wG9Eg/how-to-compress-a-directory-to-a-zip-file</link>
		<comments>http://www.linuxask.com/questions/how-to-compress-a-directory-to-a-zip-file#comments</comments>
		<pubDate>Mon, 09 Apr 2012 16:10:55 +0000</pubDate>
		<dc:creator>Linux Ask!</dc:creator>
				<category><![CDATA[Commands]]></category>
		<category><![CDATA[zip]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=3777</guid>
		<description><![CDATA[How to compress a directory to a zip file Answer: To compress a directory and all the files under this directory to a zip file, you can use # zip -r output.zip directory Related posts: Compress and decompress file using 7zip Monitor a directory for file modification Remove directory name from file path
Related posts:<ol>
<li><a href='http://www.linuxask.com/questions/compress-and-decompress-file-using-7zip' rel='bookmark' title='Compress and decompress file using 7zip'>Compress and decompress file using 7zip</a></li>
<li><a href='http://www.linuxask.com/questions/monitor-a-directory-for-file-modification' rel='bookmark' title='Monitor a directory for file modification'>Monitor a directory for file modification</a></li>
<li><a href='http://www.linuxask.com/questions/remove-directory-name-from-file-path' rel='bookmark' title='Remove directory name from file path'>Remove directory name from file path</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>How to compress a directory to a zip file</p>
<p><strong>Answer:</strong></p>
<p>To compress a <strong>directory </strong> and all the files under this directory to a zip file, you can use</p>
<p><code># zip -r output.zip directory</code></p>
<p>Related posts:<ol>
<li><a href='http://www.linuxask.com/questions/compress-and-decompress-file-using-7zip' rel='bookmark' title='Compress and decompress file using 7zip'>Compress and decompress file using 7zip</a></li>
<li><a href='http://www.linuxask.com/questions/monitor-a-directory-for-file-modification' rel='bookmark' title='Monitor a directory for file modification'>Monitor a directory for file modification</a></li>
<li><a href='http://www.linuxask.com/questions/remove-directory-name-from-file-path' rel='bookmark' title='Remove directory name from file path'>Remove directory name from file path</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/linuxask/~4/kawJW-wG9Eg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/how-to-compress-a-directory-to-a-zip-file/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.linuxask.com/questions/how-to-compress-a-directory-to-a-zip-file</feedburner:origLink></item>
		<item>
		<title>Echo without a newline at the end</title>
		<link>http://feedproxy.google.com/~r/linuxask/~3/LkFBOXE8gEA/echo-without-a-newline-at-the-end</link>
		<comments>http://www.linuxask.com/questions/echo-without-a-newline-at-the-end#comments</comments>
		<pubDate>Sat, 24 Mar 2012 08:45:25 +0000</pubDate>
		<dc:creator>Linux Ask!</dc:creator>
				<category><![CDATA[Commands]]></category>
		<category><![CDATA[command]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=3765</guid>
		<description><![CDATA[Echo without a newline at the end Answer: Normally when you use the echo command to print a string, it will append a newline at the end of the string. To skip the newline, you can try using the "-n" argument. # echo -n "hello" Related posts: How to print out a newline character using <a href='http://www.linuxask.com/questions/echo-without-a-newline-at-the-end'>[...]</a>
Related posts:<ol>
<li><a href='http://www.linuxask.com/questions/how-to-print-out-a-newline-character-using-the-echo-command' rel='bookmark' title='How to print out a newline character using the echo command?'>How to print out a newline character using the echo command?</a></li>
<li><a href='http://www.linuxask.com/questions/remove-newline-character-from-the-end-of-a-string-in-perl' rel='bookmark' title='Remove newline character from the end of a string in Perl'>Remove newline character from the end of a string in Perl</a></li>
<li><a href='http://www.linuxask.com/questions/cross-platform-newline-in-php' rel='bookmark' title='Cross platform newline in PHP'>Cross platform newline in PHP</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Echo without a newline at the end</p>
<p><strong>Answer:</strong></p>
<p>Normally when you use the <strong>echo</strong> command to print a string, it will append a <strong>newline</strong> at the end of the string. To skip the newline, you can try using the <strong>"-n"</strong> argument.</p>
<p><code># echo -n "hello"</code></p>
<p>Related posts:<ol>
<li><a href='http://www.linuxask.com/questions/how-to-print-out-a-newline-character-using-the-echo-command' rel='bookmark' title='How to print out a newline character using the echo command?'>How to print out a newline character using the echo command?</a></li>
<li><a href='http://www.linuxask.com/questions/remove-newline-character-from-the-end-of-a-string-in-perl' rel='bookmark' title='Remove newline character from the end of a string in Perl'>Remove newline character from the end of a string in Perl</a></li>
<li><a href='http://www.linuxask.com/questions/cross-platform-newline-in-php' rel='bookmark' title='Cross platform newline in PHP'>Cross platform newline in PHP</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/linuxask/~4/LkFBOXE8gEA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/echo-without-a-newline-at-the-end/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.linuxask.com/questions/echo-without-a-newline-at-the-end</feedburner:origLink></item>
		<item>
		<title>Perform AES256 encryption on a string using command</title>
		<link>http://feedproxy.google.com/~r/linuxask/~3/wicJizWEF4M/perform-aes256-encryption-on-a-string-using-command</link>
		<comments>http://www.linuxask.com/questions/perform-aes256-encryption-on-a-string-using-command#comments</comments>
		<pubDate>Thu, 08 Mar 2012 16:35:51 +0000</pubDate>
		<dc:creator>Linux Ask!</dc:creator>
				<category><![CDATA[Linux Security]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=3761</guid>
		<description><![CDATA[Perform AES256 encryption on a string using command Answer: To encrypt a string using AES256, you can use the openssl tool. # echo -n 'apple' &#124; openssl enc -aes256 -k password -nosalt -iv 0 -a -p key=1F3870BE274F6C49B3E31A0C6728957F0628DEF3179C824405825F85F5527096 iv =00000000000000000000000000000000 PMcE/8RE+RLRlQWT5tlLWA== No related posts.
No related posts.]]></description>
			<content:encoded><![CDATA[<p>Perform AES256 encryption on a string using command</p>
<p><strong>Answer:</strong></p>
<p>To encrypt a string using <strong>AES256</strong>, you can use the openssl tool.</p>
<pre><code># echo -n 'apple' | openssl enc -aes256 -k password -nosalt -iv 0 -a -p

key=1F3870BE274F6C49B3E31A0C6728957F0628DEF3179C824405825F85F5527096
iv =00000000000000000000000000000000
PMcE/8RE+RLRlQWT5tlLWA==
</code></pre>
<p>No related posts.</p><img src="http://feeds.feedburner.com/~r/linuxask/~4/wicJizWEF4M" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/perform-aes256-encryption-on-a-string-using-command/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.linuxask.com/questions/perform-aes256-encryption-on-a-string-using-command</feedburner:origLink></item>
	</channel>
</rss>

