<?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>Sat, 18 May 2013 15:18:42 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</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 disable MySQL from autostart when Ubuntu bootup</title>
		<link>http://feedproxy.google.com/~r/linuxask/~3/6YLlaP8yTJc/how-to-disable-mysql-from-autostart-when-ubuntu-bootup</link>
		<comments>http://www.linuxask.com/questions/how-to-disable-mysql-from-autostart-when-ubuntu-bootup#comments</comments>
		<pubDate>Sat, 18 May 2013 15:18:42 +0000</pubDate>
		<dc:creator>Linux Ask!</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=4249</guid>
		<description><![CDATA[How to disable MySQL from autostart when Ubuntu bootup Answer: A newer version of MySQL use upstart to autostart when system bootup, to disable it # sudo mkdir /etc/init.disabled # sudo mv /etc/init/mysql.conf /etc/init.disabled/<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href='http://www.linuxask.com/questions/disable-a-service-in-ubuntu-using-upstart' rel='bookmark' title='Disable a service in Ubuntu using upstart'>Disable a service in Ubuntu using upstart</a></li>
<li><a href='http://www.linuxask.com/questions/etcinittab-is-missing-in-ubuntuetcinittab-is-missing-in-ubuntu' rel='bookmark' title='/etc/inittab is missing in Ubuntu'>/etc/inittab is missing in Ubuntu</a></li>
<li><a href='http://www.linuxask.com/questions/disable-dns-hostname-lookup-in-mysql' rel='bookmark' title='Disable DNS hostname lookup in MySQL'>Disable DNS hostname lookup in MySQL</a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>How to disable MySQL from autostart when Ubuntu bootup</p>
<p><strong>Answer:</strong></p>
<p>A newer version of MySQL use upstart to autostart when system bootup, to disable it</p>
<pre># sudo mkdir /etc/init.disabled
# sudo mv /etc/init/mysql.conf /etc/init.disabled/
</pre>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href='http://www.linuxask.com/questions/disable-a-service-in-ubuntu-using-upstart' rel='bookmark' title='Disable a service in Ubuntu using upstart'>Disable a service in Ubuntu using upstart</a></li>
<li><a href='http://www.linuxask.com/questions/etcinittab-is-missing-in-ubuntuetcinittab-is-missing-in-ubuntu' rel='bookmark' title='/etc/inittab is missing in Ubuntu'>/etc/inittab is missing in Ubuntu</a></li>
<li><a href='http://www.linuxask.com/questions/disable-dns-hostname-lookup-in-mysql' rel='bookmark' title='Disable DNS hostname lookup in MySQL'>Disable DNS hostname lookup in MySQL</a></li>
</ol></p>
</div>
<img src="http://feeds.feedburner.com/~r/linuxask/~4/6YLlaP8yTJc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/how-to-disable-mysql-from-autostart-when-ubuntu-bootup/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.linuxask.com/questions/how-to-disable-mysql-from-autostart-when-ubuntu-bootup</feedburner:origLink></item>
		<item>
		<title>Generate random data in MongoDB</title>
		<link>http://feedproxy.google.com/~r/linuxask/~3/IvPOOIERRBI/generate-random-data-in-mongodb</link>
		<comments>http://www.linuxask.com/questions/generate-random-data-in-mongodb#comments</comments>
		<pubDate>Wed, 15 May 2013 15:16:21 +0000</pubDate>
		<dc:creator>Linux Ask!</dc:creator>
				<category><![CDATA[Advanced Linux]]></category>
		<category><![CDATA[MongoDB]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=4246</guid>
		<description><![CDATA[Generate random data in MongoDB Answer: You can use the following method to generate random string into a collection in MongoDB: function randomString() { var chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz"; var randomstring = ''; var string_length = 100; for (var i=0; i&#60;string_length; i++) { var rnum = Math.floor(Math.random() * chars.length); randomstring += chars.substring(rnum,rnum+1); } return randomstring; } <a href='http://www.linuxask.com/questions/generate-random-data-in-mongodb' class='excerpt-more'>[...]</a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href='http://www.linuxask.com/questions/generate-uuid-in-php' rel='bookmark' title='Generate UUID in PHP'>Generate UUID in PHP</a></li>
<li><a href='http://www.linuxask.com/questions/generate-random-number-in-linux' rel='bookmark' title='Generate random number in Linux'>Generate random number in Linux</a></li>
<li><a href='http://www.linuxask.com/questions/generate-random-number-in-perl' rel='bookmark' title='Generate random number in Perl'>Generate random number in Perl</a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>Generate random data in MongoDB</p>
<p><strong>Answer:</strong></p>
<p>You can use the following method to generate random string into a collection in MongoDB:</p>
<pre><code>function randomString() { 
        var chars = 
"0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz"; 
        var randomstring = ''; 
        var string_length = 100;
        for (var i=0; i&lt;string_length; i++) { 
                var rnum = Math.floor(Math.random() * chars.length); 
                randomstring += chars.substring(rnum,rnum+1); 
        } 
        return randomstring; 
} 

for(var i=0; i<2000000; i++){db.test.save({x:i, data:randomString()});} 
</code></pre>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href='http://www.linuxask.com/questions/generate-uuid-in-php' rel='bookmark' title='Generate UUID in PHP'>Generate UUID in PHP</a></li>
<li><a href='http://www.linuxask.com/questions/generate-random-number-in-linux' rel='bookmark' title='Generate random number in Linux'>Generate random number in Linux</a></li>
<li><a href='http://www.linuxask.com/questions/generate-random-number-in-perl' rel='bookmark' title='Generate random number in Perl'>Generate random number in Perl</a></li>
</ol></p>
</div>
<img src="http://feeds.feedburner.com/~r/linuxask/~4/IvPOOIERRBI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/generate-random-data-in-mongodb/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.linuxask.com/questions/generate-random-data-in-mongodb</feedburner:origLink></item>
		<item>
		<title>How to get the total database index size of my MongoDB</title>
		<link>http://feedproxy.google.com/~r/linuxask/~3/11J2E_8CZ_Y/how-to-get-the-total-database-index-size-of-my-mongodb</link>
		<comments>http://www.linuxask.com/questions/how-to-get-the-total-database-index-size-of-my-mongodb#comments</comments>
		<pubDate>Wed, 15 May 2013 07:47:01 +0000</pubDate>
		<dc:creator>Linux Ask!</dc:creator>
				<category><![CDATA[MongoDB]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=4235</guid>
		<description><![CDATA[How to get the total database index size of my MongoDB Answer: In you mongo shell, execute the following command: var sum = 0; db.getMongo().getDBs()["databases"].forEach(function(x) { sum += db.getMongo().getDB(x.name).stats().indexSize }); print(sum)<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href='http://www.linuxask.com/questions/creates-an-index-in-mongodb' rel='bookmark' title='Creates an index in MongoDB'>Creates an index in MongoDB</a></li>
<li><a href='http://www.linuxask.com/questions/repair-and-compact-database-in-mongodb' rel='bookmark' title='Repair and compact database in MongoDB'>Repair and compact database in MongoDB</a></li>
<li><a href='http://www.linuxask.com/questions/create-an-index-on-a-document-in-mongodb' rel='bookmark' title='Create an index on a document in MongoDB'>Create an index on a document in MongoDB</a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>How to get the total database index size of my MongoDB</p>
<p><strong>Answer:</strong></p>
<p>In you mongo shell, execute the following command:</p>
<pre><code>var sum = 0; db.getMongo().getDBs()["databases"].forEach(function(x) { sum += db.getMongo().getDB(x.name).stats().indexSize }); print(sum)</code></pre>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href='http://www.linuxask.com/questions/creates-an-index-in-mongodb' rel='bookmark' title='Creates an index in MongoDB'>Creates an index in MongoDB</a></li>
<li><a href='http://www.linuxask.com/questions/repair-and-compact-database-in-mongodb' rel='bookmark' title='Repair and compact database in MongoDB'>Repair and compact database in MongoDB</a></li>
<li><a href='http://www.linuxask.com/questions/create-an-index-on-a-document-in-mongodb' rel='bookmark' title='Create an index on a document in MongoDB'>Create an index on a document in MongoDB</a></li>
</ol></p>
</div>
<img src="http://feeds.feedburner.com/~r/linuxask/~4/11J2E_8CZ_Y" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/how-to-get-the-total-database-index-size-of-my-mongodb/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.linuxask.com/questions/how-to-get-the-total-database-index-size-of-my-mongodb</feedburner:origLink></item>
		<item>
		<title>How to change default system locale in Ubuntu</title>
		<link>http://feedproxy.google.com/~r/linuxask/~3/jRNhpy0QuaU/how-to-change-default-system-locale-in-ubuntu</link>
		<comments>http://www.linuxask.com/questions/how-to-change-default-system-locale-in-ubuntu#comments</comments>
		<pubDate>Sat, 11 May 2013 04:20:17 +0000</pubDate>
		<dc:creator>Linux Ask!</dc:creator>
				<category><![CDATA[Advanced Linux]]></category>
		<category><![CDATA[locale]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=4254</guid>
		<description><![CDATA[How to change default system locale in Ubuntu Answer: Edit the file "/etc/default/locale" to the locale you want.<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href='http://www.linuxask.com/questions/change-your-default-locale-on-ubuntu' rel='bookmark' title='Change your default locale on Ubuntu'>Change your default locale on Ubuntu</a></li>
<li><a href='http://www.linuxask.com/questions/how-to-add-a-locale-to-ubuntu-server' rel='bookmark' title='How to add a locale to Ubuntu server'>How to add a locale to Ubuntu server</a></li>
<li><a href='http://www.linuxask.com/questions/how-to-remove-a-locale-in-ubuntu-server' rel='bookmark' title='How to remove a locale in Ubuntu server'>How to remove a locale in Ubuntu server</a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>How to change default system locale in Ubuntu</p>
<p><strong>Answer:</strong></p>
<p>Edit the file "<strong>/etc/default/locale</strong>" to the locale you want.</p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href='http://www.linuxask.com/questions/change-your-default-locale-on-ubuntu' rel='bookmark' title='Change your default locale on Ubuntu'>Change your default locale on Ubuntu</a></li>
<li><a href='http://www.linuxask.com/questions/how-to-add-a-locale-to-ubuntu-server' rel='bookmark' title='How to add a locale to Ubuntu server'>How to add a locale to Ubuntu server</a></li>
<li><a href='http://www.linuxask.com/questions/how-to-remove-a-locale-in-ubuntu-server' rel='bookmark' title='How to remove a locale in Ubuntu server'>How to remove a locale in Ubuntu server</a></li>
</ol></p>
</div>
<img src="http://feeds.feedburner.com/~r/linuxask/~4/jRNhpy0QuaU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/how-to-change-default-system-locale-in-ubuntu/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.linuxask.com/questions/how-to-change-default-system-locale-in-ubuntu</feedburner:origLink></item>
		<item>
		<title>How to copy symbolic links as real files when using rsync</title>
		<link>http://feedproxy.google.com/~r/linuxask/~3/toM89r8DDQk/how-to-copy-symbolic-links-as-real-files-when-using-rsync</link>
		<comments>http://www.linuxask.com/questions/how-to-copy-symbolic-links-as-real-files-when-using-rsync#comments</comments>
		<pubDate>Fri, 10 May 2013 11:51:07 +0000</pubDate>
		<dc:creator>Linux Ask!</dc:creator>
				<category><![CDATA[Advanced Linux]]></category>
		<category><![CDATA[Commands]]></category>
		<category><![CDATA[rsync]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=4233</guid>
		<description><![CDATA[How to copy symbolic links as real files when using rsync Answer: Use the -L or --copy-links option, e.g. rsync -avuz --copy-links -e ssh /home/john 192.168.1.5:/data/backup/<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href='http://www.linuxask.com/questions/how-to-copy-symbolic-links-using-scp' rel='bookmark' title='How to copy symbolic links using scp'>How to copy symbolic links using scp</a></li>
<li><a href='http://www.linuxask.com/questions/how-to-mirror-a-directory-to-a-remote-server-over-ssh' rel='bookmark' title='How to mirror a directory to a remote server over SSH?'>How to mirror a directory to a remote server over SSH?</a></li>
<li><a href='http://www.linuxask.com/questions/copy-a-directory-for-backup-to-another-location' rel='bookmark' title='Copy a directory (for backup) to another location'>Copy a directory (for backup) to another location</a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>How to copy symbolic links as real files when using rsync</p>
<p><strong>Answer:</strong></p>
<p>Use the <strong>-L</strong> or <strong>--copy-links</strong> option, e.g.</p>
<pre><code>rsync -avuz --copy-links -e ssh /home/john 192.168.1.5:/data/backup/</code></pre>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href='http://www.linuxask.com/questions/how-to-copy-symbolic-links-using-scp' rel='bookmark' title='How to copy symbolic links using scp'>How to copy symbolic links using scp</a></li>
<li><a href='http://www.linuxask.com/questions/how-to-mirror-a-directory-to-a-remote-server-over-ssh' rel='bookmark' title='How to mirror a directory to a remote server over SSH?'>How to mirror a directory to a remote server over SSH?</a></li>
<li><a href='http://www.linuxask.com/questions/copy-a-directory-for-backup-to-another-location' rel='bookmark' title='Copy a directory (for backup) to another location'>Copy a directory (for backup) to another location</a></li>
</ol></p>
</div>
<img src="http://feeds.feedburner.com/~r/linuxask/~4/toM89r8DDQk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/how-to-copy-symbolic-links-as-real-files-when-using-rsync/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.linuxask.com/questions/how-to-copy-symbolic-links-as-real-files-when-using-rsync</feedburner:origLink></item>
		<item>
		<title>Move forward or backward by a word in bash shell</title>
		<link>http://feedproxy.google.com/~r/linuxask/~3/Gi1Sb559OCo/move-forward-or-backward-by-a-word-in-bash-shell</link>
		<comments>http://www.linuxask.com/questions/move-forward-or-backward-by-a-word-in-bash-shell#comments</comments>
		<pubDate>Sun, 05 May 2013 05:35:53 +0000</pubDate>
		<dc:creator>Linux Ask!</dc:creator>
				<category><![CDATA[Advanced Linux]]></category>
		<category><![CDATA[Commands]]></category>
		<category><![CDATA[Bash]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=4223</guid>
		<description><![CDATA[Move forward or backward by a word in bash shell Answer: To move more efficiently in bash shell, you can use the following short cuts Meta + f (move forward by a word) Meta + b (move backward by a word) The Meta key is the Alt key under most systems, on Mac, you would <a href='http://www.linuxask.com/questions/move-forward-or-backward-by-a-word-in-bash-shell' class='excerpt-more'>[...]</a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href='http://www.linuxask.com/questions/remove-the-last-word-when-typing-a-command-in-bash' rel='bookmark' title='Remove the last word when typing a command in Bash'>Remove the last word when typing a command in Bash</a></li>
<li><a href='http://www.linuxask.com/questions/remove-the-whole-line-when-typing-a-command-in-bash' rel='bookmark' title='Remove the whole line when typing a command in Bash'>Remove the whole line when typing a command in Bash</a></li>
<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>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>Move forward or backward by a word in bash shell</p>
<p><strong>Answer:</strong></p>
<p>To move more efficiently in bash shell, you can use the following short cuts</p>
<pre><code>Meta + f (move forward by a word)
Meta + b (move backward by a word)</code></pre>
<p>The <strong>Meta</strong> key is the <strong>Alt</strong> key under most systems, on Mac, you would need to enable "<strong>use option as meta key</strong>" in the Terminal's Preference.</p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href='http://www.linuxask.com/questions/remove-the-last-word-when-typing-a-command-in-bash' rel='bookmark' title='Remove the last word when typing a command in Bash'>Remove the last word when typing a command in Bash</a></li>
<li><a href='http://www.linuxask.com/questions/remove-the-whole-line-when-typing-a-command-in-bash' rel='bookmark' title='Remove the whole line when typing a command in Bash'>Remove the whole line when typing a command in Bash</a></li>
<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>
</ol></p>
</div>
<img src="http://feeds.feedburner.com/~r/linuxask/~4/Gi1Sb559OCo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/move-forward-or-backward-by-a-word-in-bash-shell/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.linuxask.com/questions/move-forward-or-backward-by-a-word-in-bash-shell</feedburner:origLink></item>
		<item>
		<title>How to copy symbolic links using scp</title>
		<link>http://feedproxy.google.com/~r/linuxask/~3/KJOHHwvA9Ys/how-to-copy-symbolic-links-using-scp</link>
		<comments>http://www.linuxask.com/questions/how-to-copy-symbolic-links-using-scp#comments</comments>
		<pubDate>Tue, 30 Apr 2013 11:48:18 +0000</pubDate>
		<dc:creator>Linux Ask!</dc:creator>
				<category><![CDATA[Commands]]></category>
		<category><![CDATA[scp]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=4229</guid>
		<description><![CDATA[How to copy symbolic links using scp Answer: The answer is no, you can't. You need to use other alternative like rsync. Reference: https://bugzilla.mindrot.org/show_bug.cgi?id=485<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href='http://www.linuxask.com/questions/copy-a-directory-for-backup-to-another-location' rel='bookmark' title='Copy a directory (for backup) to another location'>Copy a directory (for backup) to another location</a></li>
<li><a href='http://www.linuxask.com/questions/how-to-cp-copy-files-without-asking-for-confirmation' rel='bookmark' title='How to cp (copy) files without asking for confirmation?'>How to cp (copy) files without asking for confirmation?</a></li>
<li><a href='http://www.linuxask.com/questions/copy-file-to-remote-server-using-scp' rel='bookmark' title='Copy file to remote server using scp'>Copy file to remote server using scp</a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>How to copy symbolic links using scp</p>
<p><strong>Answer:</strong></p>
<p>The answer is <strong>no</strong>, you can't.</p>
<p>You need to use other alternative like <strong><a href="http://www.linuxask.com/questions/how-to-mirror-a-directory-to-a-remote-server-over-ssh">rsync</a></strong>.</p>
<p>Reference: <a href="https://bugzilla.mindrot.org/show_bug.cgi?id=485">https://bugzilla.mindrot.org/show_bug.cgi?id=485</a></p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href='http://www.linuxask.com/questions/copy-a-directory-for-backup-to-another-location' rel='bookmark' title='Copy a directory (for backup) to another location'>Copy a directory (for backup) to another location</a></li>
<li><a href='http://www.linuxask.com/questions/how-to-cp-copy-files-without-asking-for-confirmation' rel='bookmark' title='How to cp (copy) files without asking for confirmation?'>How to cp (copy) files without asking for confirmation?</a></li>
<li><a href='http://www.linuxask.com/questions/copy-file-to-remote-server-using-scp' rel='bookmark' title='Copy file to remote server using scp'>Copy file to remote server using scp</a></li>
</ol></p>
</div>
<img src="http://feeds.feedburner.com/~r/linuxask/~4/KJOHHwvA9Ys" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/how-to-copy-symbolic-links-using-scp/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.linuxask.com/questions/how-to-copy-symbolic-links-using-scp</feedburner:origLink></item>
		<item>
		<title>How to echo single quote in bash shell</title>
		<link>http://feedproxy.google.com/~r/linuxask/~3/Ih8iIxmNCSs/how-to-echo-single-quote-in-bash-shell</link>
		<comments>http://www.linuxask.com/questions/how-to-echo-single-quote-in-bash-shell#comments</comments>
		<pubDate>Tue, 23 Apr 2013 05:24:53 +0000</pubDate>
		<dc:creator>Linux Ask!</dc:creator>
				<category><![CDATA[Bash]]></category>
		<category><![CDATA[Commands]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=4221</guid>
		<description><![CDATA[How to echo single quote in bash shell Answer: To echo single quote (using single quote only), you can try # echo foo foo # echo \'''foo 'foo<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href='http://www.linuxask.com/questions/simple-for-loop-in-bash-shell' rel='bookmark' title='Simple for loop in Bash shell'>Simple for loop in Bash shell</a></li>
<li><a href='http://www.linuxask.com/questions/how-to-get-the-pid-in-current-bash-shell-script' rel='bookmark' title='How to get the PID in current bash shell script'>How to get the PID in current bash shell script</a></li>
<li><a href='http://www.linuxask.com/questions/check-if-a-file-exist-in-bash-shell' rel='bookmark' title='Check if a file exist in Bash Shell'>Check if a file exist in Bash Shell</a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>How to echo single quote in bash shell</p>
<p><strong>Answer:</strong></p>
<p>To echo single quote (using single quote only), you can try</p>
<pre><code># echo foo
foo
# echo \'''foo
'foo
</code></pre>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href='http://www.linuxask.com/questions/simple-for-loop-in-bash-shell' rel='bookmark' title='Simple for loop in Bash shell'>Simple for loop in Bash shell</a></li>
<li><a href='http://www.linuxask.com/questions/how-to-get-the-pid-in-current-bash-shell-script' rel='bookmark' title='How to get the PID in current bash shell script'>How to get the PID in current bash shell script</a></li>
<li><a href='http://www.linuxask.com/questions/check-if-a-file-exist-in-bash-shell' rel='bookmark' title='Check if a file exist in Bash Shell'>Check if a file exist in Bash Shell</a></li>
</ol></p>
</div>
<img src="http://feeds.feedburner.com/~r/linuxask/~4/Ih8iIxmNCSs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/how-to-echo-single-quote-in-bash-shell/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.linuxask.com/questions/how-to-echo-single-quote-in-bash-shell</feedburner:origLink></item>
		<item>
		<title>Check how long a MongoDB instance was running</title>
		<link>http://feedproxy.google.com/~r/linuxask/~3/aKmW5eixT1M/check-how-long-a-mongodb-instance-was-running</link>
		<comments>http://www.linuxask.com/questions/check-how-long-a-mongodb-instance-was-running#comments</comments>
		<pubDate>Mon, 15 Apr 2013 02:16:59 +0000</pubDate>
		<dc:creator>Linux Ask!</dc:creator>
				<category><![CDATA[MongoDB]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=4219</guid>
		<description><![CDATA[Check how long a MongoDB instance was running Answer: To see how long a MongoDB instance was running, you can login into the mongo shell, and enter db.serverStatus().uptime / 3600 The above command reply the value in term of hours.<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href='http://www.linuxask.com/questions/check-how-long-server-has-been-running' rel='bookmark' title='Check how long server has been running'>Check how long server has been running</a></li>
<li><a href='http://www.linuxask.com/questions/how-to-get-the-startup-warning-from-mongodb' rel='bookmark' title='How to get the startup warning from MongoDB?'>How to get the startup warning from MongoDB?</a></li>
<li><a href='http://www.linuxask.com/questions/how-to-check-the-current-mongodb-version' rel='bookmark' title='How to check the current MongoDB version'>How to check the current MongoDB version</a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>Check how long a MongoDB instance was running</p>
<p><strong>Answer:</strong></p>
<p>To see how long a MongoDB instance was running, you can login into the mongo shell, and enter</p>
<p><code>db.serverStatus().uptime / 3600</code></p>
<p>The above command reply the value in term of <strong>hours</strong>.</p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href='http://www.linuxask.com/questions/check-how-long-server-has-been-running' rel='bookmark' title='Check how long server has been running'>Check how long server has been running</a></li>
<li><a href='http://www.linuxask.com/questions/how-to-get-the-startup-warning-from-mongodb' rel='bookmark' title='How to get the startup warning from MongoDB?'>How to get the startup warning from MongoDB?</a></li>
<li><a href='http://www.linuxask.com/questions/how-to-check-the-current-mongodb-version' rel='bookmark' title='How to check the current MongoDB version'>How to check the current MongoDB version</a></li>
</ol></p>
</div>
<img src="http://feeds.feedburner.com/~r/linuxask/~4/aKmW5eixT1M" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/check-how-long-a-mongodb-instance-was-running/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.linuxask.com/questions/check-how-long-a-mongodb-instance-was-running</feedburner:origLink></item>
		<item>
		<title>How to get the startup warning from MongoDB?</title>
		<link>http://feedproxy.google.com/~r/linuxask/~3/GHb6qxawnwc/how-to-get-the-startup-warning-from-mongodb</link>
		<comments>http://www.linuxask.com/questions/how-to-get-the-startup-warning-from-mongodb#comments</comments>
		<pubDate>Thu, 11 Apr 2013 02:16:28 +0000</pubDate>
		<dc:creator>Linux Ask!</dc:creator>
				<category><![CDATA[MongoDB]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=4217</guid>
		<description><![CDATA[How to get the startup warning from MongoDB? Answer: The easiest way is login into the MongoDB using the shell, enter the command: db.adminCommand({getLog: "startupWarnings" })<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href='http://www.linuxask.com/questions/drop-a-collection-in-mongodb' rel='bookmark' title='Drop a collection in MongoDB'>Drop a collection in MongoDB</a></li>
<li><a href='http://www.linuxask.com/questions/create-an-index-on-a-document-in-mongodb' rel='bookmark' title='Create an index on a document in MongoDB'>Create an index on a document in MongoDB</a></li>
<li><a href='http://www.linuxask.com/questions/how-to-check-the-current-mongodb-version' rel='bookmark' title='How to check the current MongoDB version'>How to check the current MongoDB version</a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>How to get the startup warning from MongoDB?</p>
<p><strong>Answer:</strong></p>
<p>The easiest way is login into the MongoDB using the shell, enter the command:</p>
<p><code>db.adminCommand({getLog: "startupWarnings" })</code></p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href='http://www.linuxask.com/questions/drop-a-collection-in-mongodb' rel='bookmark' title='Drop a collection in MongoDB'>Drop a collection in MongoDB</a></li>
<li><a href='http://www.linuxask.com/questions/create-an-index-on-a-document-in-mongodb' rel='bookmark' title='Create an index on a document in MongoDB'>Create an index on a document in MongoDB</a></li>
<li><a href='http://www.linuxask.com/questions/how-to-check-the-current-mongodb-version' rel='bookmark' title='How to check the current MongoDB version'>How to check the current MongoDB version</a></li>
</ol></p>
</div>
<img src="http://feeds.feedburner.com/~r/linuxask/~4/GHb6qxawnwc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/how-to-get-the-startup-warning-from-mongodb/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.linuxask.com/questions/how-to-get-the-startup-warning-from-mongodb</feedburner:origLink></item>
	</channel>
</rss>
