<?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>Linux Ask!</title>
	<atom:link href="http://www.linuxask.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.linuxask.com</link>
	<description>Linux Ask! is a Q &#38; A web site specific for Linux related questions such as how to use common Linux commands.</description>
	<lastBuildDate>Tue, 05 May 2015 07:15:40 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>Grep a text from a specific file extension</title>
		<link>http://www.linuxask.com/questions/grep-a-text-from-a-specific-file-extension</link>
		<comments>http://www.linuxask.com/questions/grep-a-text-from-a-specific-file-extension#comments</comments>
		<pubDate>Tue, 05 May 2015 07:15:40 +0000</pubDate>
		<dc:creator><![CDATA[Linux Ask!]]></dc:creator>
				<category><![CDATA[Advanced Linux]]></category>
		<category><![CDATA[grep]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=4467</guid>
		<description><![CDATA[Grep a text from a specific file extension Answer: Suppose you want to grep a specific code from files with a specific file extension, you can try # grep -r --include \*.php 'error_log(' .<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/count-the-number-of-lines-contain-a-specific-string-using-grep" rel="bookmark" title="Count the number of lines contain a specific string using grep">Count the number of lines contain a specific string using grep </a></li>
<li><a href="http://www.linuxask.com/questions/how-to-grep-a-string-in-a-binary-file" rel="bookmark" title="How to grep a string in a binary file?">How to grep a string in a binary file? </a></li>
<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>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>Grep a text from a specific file extension</p>
<p><strong>Answer:</strong></p>
<p>Suppose you want to grep a specific code from files with a specific file extension, you can try</p>
<p><code># grep -r --include \*.php  'error_log(' . </code></p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/count-the-number-of-lines-contain-a-specific-string-using-grep" rel="bookmark" title="Count the number of lines contain a specific string using grep">Count the number of lines contain a specific string using grep </a></li>
<li><a href="http://www.linuxask.com/questions/how-to-grep-a-string-in-a-binary-file" rel="bookmark" title="How to grep a string in a binary file?">How to grep a string in a binary file? </a></li>
<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>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/grep-a-text-from-a-specific-file-extension/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove Mac OSX&#8217;s dot underscore files</title>
		<link>http://www.linuxask.com/questions/remove-mac-osxs-dot-underscore-files</link>
		<comments>http://www.linuxask.com/questions/remove-mac-osxs-dot-underscore-files#comments</comments>
		<pubDate>Sun, 26 Oct 2014 18:20:16 +0000</pubDate>
		<dc:creator><![CDATA[Linux Ask!]]></dc:creator>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=4460</guid>
		<description><![CDATA[Remove Mac OSX's dot underscore files Answer: To list the dot underscore files in a Mac directory, you can use: # find . -name '._*' -exec ls {} \; To remove them, you can try: # find . -name '._*' -exec rm -v {} \;<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/how-to-remove-all-orig-files-created-by-mercurial" rel="bookmark" title="How to remove all .orig files created by Mercurial">How to remove all .orig files created by Mercurial </a></li>
<li><a href="http://www.linuxask.com/questions/remove-downloaded-archive-files-from-apt-get" rel="bookmark" title="Remove downloaded archive files from apt-get">Remove downloaded archive files from apt-get </a></li>
<li><a href="http://www.linuxask.com/questions/remove-un-staged-files-or-directories-from-git-repository" rel="bookmark" title="Remove un-staged files or directories from Git repository">Remove un-staged files or directories from Git repository </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>Remove Mac OSX's dot underscore files</p>
<p><strong>Answer:</strong></p>
<p>To list the dot underscore files in a Mac directory, you can use:</p>
<p><code># find . -name '._*' -exec ls {} \;</code></p>
<p>To remove them, you can try:</p>
<p><code># find . -name '._*' -exec rm -v {} \;</code></p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/how-to-remove-all-orig-files-created-by-mercurial" rel="bookmark" title="How to remove all .orig files created by Mercurial">How to remove all .orig files created by Mercurial </a></li>
<li><a href="http://www.linuxask.com/questions/remove-downloaded-archive-files-from-apt-get" rel="bookmark" title="Remove downloaded archive files from apt-get">Remove downloaded archive files from apt-get </a></li>
<li><a href="http://www.linuxask.com/questions/remove-un-staged-files-or-directories-from-git-repository" rel="bookmark" title="Remove un-staged files or directories from Git repository">Remove un-staged files or directories from Git repository </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/remove-mac-osxs-dot-underscore-files/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to get the current running Java processes with full argument</title>
		<link>http://www.linuxask.com/questions/how-to-get-the-current-running-java-processes-with-full-argument</link>
		<comments>http://www.linuxask.com/questions/how-to-get-the-current-running-java-processes-with-full-argument#comments</comments>
		<pubDate>Sun, 26 Oct 2014 17:51:06 +0000</pubDate>
		<dc:creator><![CDATA[Linux Ask!]]></dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=4458</guid>
		<description><![CDATA[How to get the current running Java processes with full argument Answer: To do so, use the command: #jps -mlvV<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/find-the-number-of-running-processes-on-your-system" rel="bookmark" title="Find the number of running processes on your system">Find the number of running processes on your system </a></li>
<li><a href="http://www.linuxask.com/questions/how-to-disable-ipv6-support-in-a-java-program" rel="bookmark" title="How to disable IPv6 support in a Java program">How to disable IPv6 support in a Java program </a></li>
<li><a href="http://www.linuxask.com/questions/how-to-alter-the-priority-of-running-processes" rel="bookmark" title="How to alter the priority of running processes">How to alter the priority of running processes </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>How to get the current running Java processes with full argument</p>
<p><strong>Answer:</strong></p>
<p>To do so, use the command:</p>
<p><code>#jps -mlvV</code></p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/find-the-number-of-running-processes-on-your-system" rel="bookmark" title="Find the number of running processes on your system">Find the number of running processes on your system </a></li>
<li><a href="http://www.linuxask.com/questions/how-to-disable-ipv6-support-in-a-java-program" rel="bookmark" title="How to disable IPv6 support in a Java program">How to disable IPv6 support in a Java program </a></li>
<li><a href="http://www.linuxask.com/questions/how-to-alter-the-priority-of-running-processes" rel="bookmark" title="How to alter the priority of running processes">How to alter the priority of running processes </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/how-to-get-the-current-running-java-processes-with-full-argument/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to fix &#8220;all deleted files from changed but not updated&#8221; in Git?</title>
		<link>http://www.linuxask.com/questions/how-to-fix-all-deleted-files-from-changed-but-not-updated-in-git</link>
		<comments>http://www.linuxask.com/questions/how-to-fix-all-deleted-files-from-changed-but-not-updated-in-git#comments</comments>
		<pubDate>Fri, 10 Oct 2014 09:33:41 +0000</pubDate>
		<dc:creator><![CDATA[Linux Ask!]]></dc:creator>
				<category><![CDATA[Git]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=4454</guid>
		<description><![CDATA[Answer: Sometimes, when you've removed files without using the git rm and git will warn you the message "Changed but not updated.." To fix this, you can use the command # git ls-files --deleted -z &#124; xargs -0 git rm<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/how-to-restore-locally-deleted-files-using-git" rel="bookmark" title="How to restore locally deleted files using git">How to restore locally deleted files using git </a></li>
<li><a href="http://www.linuxask.com/questions/show-changed-files-with-git-log" rel="bookmark" title="Show changed files with git log">Show changed files with git log </a></li>
<li><a href="http://www.linuxask.com/questions/show-changed-files-in-git-log" rel="bookmark" title="Show changed files in git log">Show changed files in git log </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p><strong>Answer:</strong></p>
<p>Sometimes, when you've removed files without using the <strong>git rm</strong> and git will warn you the message "<strong>Changed but not updated..</strong>"</p>
<p>To fix this, you can use the command</p>
<p><code># git ls-files --deleted -z | xargs -0 git rm</code></p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/how-to-restore-locally-deleted-files-using-git" rel="bookmark" title="How to restore locally deleted files using git">How to restore locally deleted files using git </a></li>
<li><a href="http://www.linuxask.com/questions/show-changed-files-with-git-log" rel="bookmark" title="Show changed files with git log">Show changed files with git log </a></li>
<li><a href="http://www.linuxask.com/questions/show-changed-files-in-git-log" rel="bookmark" title="Show changed files in git log">Show changed files in git log </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/how-to-fix-all-deleted-files-from-changed-but-not-updated-in-git/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Trap bash exit signal</title>
		<link>http://www.linuxask.com/questions/trap-bash-exit-signal</link>
		<comments>http://www.linuxask.com/questions/trap-bash-exit-signal#comments</comments>
		<pubDate>Wed, 02 Jul 2014 04:20:55 +0000</pubDate>
		<dc:creator><![CDATA[Linux Ask!]]></dc:creator>
				<category><![CDATA[Bash]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=4427</guid>
		<description><![CDATA[Trap bash exit signal Answer: To trap your script before exit, you can use the trap in bash, e.g. #!/bin/bash set -eu function bye { echo "Good bye" } trap bye EXIT sleep 1000 # Quit the script by pressing Ctrl+C<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/how-to-execute-a-command-repeatedly-using-bash" rel="bookmark" title="How to execute a command repeatedly using bash">How to execute a command repeatedly using bash </a></li>
<li><a href="http://www.linuxask.com/questions/how-to-ignore-error-in-bash-script" rel="bookmark" title="How to ignore error in Bash script">How to ignore error in Bash script </a></li>
<li><a href="http://www.linuxask.com/questions/difference-between-die-and-exit-in-perl" rel="bookmark" title="Difference between die and exit in Perl?">Difference between die and exit in Perl? </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>Trap bash exit signal</p>
<p><strong>Answer:</strong></p>
<p>To trap your script before exit, you can use the <strong>trap</strong> in bash, e.g.</p>
<pre><code>#!/bin/bash

set -eu

function bye {
  echo "Good bye"
}

trap bye EXIT
sleep 1000 
# Quit the script by pressing Ctrl+C
</code></pre>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/how-to-execute-a-command-repeatedly-using-bash" rel="bookmark" title="How to execute a command repeatedly using bash">How to execute a command repeatedly using bash </a></li>
<li><a href="http://www.linuxask.com/questions/how-to-ignore-error-in-bash-script" rel="bookmark" title="How to ignore error in Bash script">How to ignore error in Bash script </a></li>
<li><a href="http://www.linuxask.com/questions/difference-between-die-and-exit-in-perl" rel="bookmark" title="Difference between die and exit in Perl?">Difference between die and exit in Perl? </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/trap-bash-exit-signal/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to tail a remote file over ssh</title>
		<link>http://www.linuxask.com/questions/how-to-tail-a-remote-file-over-ssh</link>
		<comments>http://www.linuxask.com/questions/how-to-tail-a-remote-file-over-ssh#comments</comments>
		<pubDate>Wed, 02 Jul 2014 03:59:48 +0000</pubDate>
		<dc:creator><![CDATA[Linux Ask!]]></dc:creator>
				<category><![CDATA[Advanced Linux]]></category>
		<category><![CDATA[Bash]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=4432</guid>
		<description><![CDATA[How to tail a remote file over ssh Answer: If you want to tail a remote file over ssh, you can use # ssh -t remote-server "tail -f /var/log/log.txt"<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/what-are-the-difference-between-tail-f-and-tail-f" rel="bookmark" title="What are the difference between tail -f and tail -F?">What are the difference between tail -f and tail -F? </a></li>
<li><a href="http://www.linuxask.com/questions/edit-a-remote-file-with-vim-over-ssh" rel="bookmark" title="Edit a remote file with vim over SSH">Edit a remote file with vim over SSH </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 tail a remote file over ssh </p>
<p><strong>Answer:</strong></p>
<p>If you want to tail a remote file over ssh, you can use</p>
<p><code># ssh -t remote-server "tail -f /var/log/log.txt"</code></p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/what-are-the-difference-between-tail-f-and-tail-f" rel="bookmark" title="What are the difference between tail -f and tail -F?">What are the difference between tail -f and tail -F? </a></li>
<li><a href="http://www.linuxask.com/questions/edit-a-remote-file-with-vim-over-ssh" rel="bookmark" title="Edit a remote file with vim over SSH">Edit a remote file with vim over SSH </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>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/how-to-tail-a-remote-file-over-ssh/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Writing more robust shell script</title>
		<link>http://www.linuxask.com/questions/writing-more-robust-shell-script</link>
		<comments>http://www.linuxask.com/questions/writing-more-robust-shell-script#comments</comments>
		<pubDate>Sat, 28 Jun 2014 04:10:58 +0000</pubDate>
		<dc:creator><![CDATA[Linux Ask!]]></dc:creator>
				<category><![CDATA[Advanced Linux]]></category>
		<category><![CDATA[Bash]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=4425</guid>
		<description><![CDATA[Writing more robust shell script Answer: You should always start your bash shell script with the line set -eu The meaning is: -e: cause the script to exit if an error -u: cause the script to exit if any variable is not set<div class='yarpp-related-rss'>

Related posts:<ol>
<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/how-to-ignore-error-in-bash-script" rel="bookmark" title="How to ignore error in Bash script">How to ignore error in Bash script </a></li>
<li><a href="http://www.linuxask.com/questions/how-to-make-shell-script-run-in-low-priority" rel="bookmark" title="How to make shell script run in low priority">How to make shell script run in low priority </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>Writing more robust shell script</p>
<p><strong>Answer:</strong></p>
<p>You should always start your bash shell script with the line <code>set -eu</code></p>
<p>The meaning is:</p>
<ol>
<li>-e: cause the script to exit if an error</li>
<li>-u: cause the script to exit if any variable is not set</li>
</ol>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<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/how-to-ignore-error-in-bash-script" rel="bookmark" title="How to ignore error in Bash script">How to ignore error in Bash script </a></li>
<li><a href="http://www.linuxask.com/questions/how-to-make-shell-script-run-in-low-priority" rel="bookmark" title="How to make shell script run in low priority">How to make shell script run in low priority </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/writing-more-robust-shell-script/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to clear terminal&#8217;s shell buffer in Mac OS X</title>
		<link>http://www.linuxask.com/questions/how-to-clear-terminals-shell-buffer-in-mac-os-x</link>
		<comments>http://www.linuxask.com/questions/how-to-clear-terminals-shell-buffer-in-mac-os-x#comments</comments>
		<pubDate>Sat, 21 Jun 2014 14:19:30 +0000</pubDate>
		<dc:creator><![CDATA[Linux Ask!]]></dc:creator>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[mac terminal]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=4423</guid>
		<description><![CDATA[How to clear terminal's shell buffer in Mac OS X Answer: To clear your terminal's shell buffer in Mac OS X, you can use COMMAND + K<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/quickly-clear-the-screen" rel="bookmark" title="Quickly clear the screen">Quickly clear the screen </a></li>
<li><a href="http://www.linuxask.com/questions/clear-screen-in-mysql-client" rel="bookmark" title="Clear screen in MySQL client">Clear screen in MySQL client </a></li>
<li><a href="http://www.linuxask.com/questions/how-to-clear-the-screen-in-linux" rel="bookmark" title="How to clear the screen in Linux">How to clear the screen in Linux </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>How to clear terminal's shell buffer in Mac OS X</p>
<p><strong>Answer:</strong></p>
<p>To clear your terminal's shell buffer in Mac OS X, you can use <strong>COMMAND + K</strong></p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/quickly-clear-the-screen" rel="bookmark" title="Quickly clear the screen">Quickly clear the screen </a></li>
<li><a href="http://www.linuxask.com/questions/clear-screen-in-mysql-client" rel="bookmark" title="Clear screen in MySQL client">Clear screen in MySQL client </a></li>
<li><a href="http://www.linuxask.com/questions/how-to-clear-the-screen-in-linux" rel="bookmark" title="How to clear the screen in Linux">How to clear the screen in Linux </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/how-to-clear-terminals-shell-buffer-in-mac-os-x/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to list system installed locales</title>
		<link>http://www.linuxask.com/questions/how-to-list-system-installed-locales</link>
		<comments>http://www.linuxask.com/questions/how-to-list-system-installed-locales#comments</comments>
		<pubDate>Tue, 17 Jun 2014 14:18:34 +0000</pubDate>
		<dc:creator><![CDATA[Linux Ask!]]></dc:creator>
				<category><![CDATA[Advanced Linux]]></category>
		<category><![CDATA[command]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=4421</guid>
		<description><![CDATA[How to list system installed locales Answer: You can list all system's currently installed locales via the command: locale -a<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/list-all-the-installed-gems" rel="bookmark" title="List all the installed gems">List all the installed gems </a></li>
<li><a href="http://www.linuxask.com/questions/list-all-installed-package-in-ubuntu" rel="bookmark" title="List all installed package in Ubuntu">List all installed package in 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>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>How to list system installed locales</p>
<p><strong>Answer:</strong></p>
<p>You can list all system's currently installed locales via the command: <code>locale -a</code></p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/list-all-the-installed-gems" rel="bookmark" title="List all the installed gems">List all the installed gems </a></li>
<li><a href="http://www.linuxask.com/questions/list-all-installed-package-in-ubuntu" rel="bookmark" title="List all installed package in Ubuntu">List all installed package in 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>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/how-to-list-system-installed-locales/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mass resolve ip to hostname</title>
		<link>http://www.linuxask.com/questions/mass-resolve-ip-to-hostname</link>
		<comments>http://www.linuxask.com/questions/mass-resolve-ip-to-hostname#comments</comments>
		<pubDate>Thu, 12 Jun 2014 06:34:33 +0000</pubDate>
		<dc:creator><![CDATA[Linux Ask!]]></dc:creator>
				<category><![CDATA[Advanced Linux]]></category>
		<category><![CDATA[networking]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=4418</guid>
		<description><![CDATA[Mass resolve ip to hostname Answer: If you have a list of IPs and need to resolve to the hostname(via reverse DNS lookup), you can use the following command: cat ip_addresses.txt &#124; xargs -n 1 -P 100 -i dig -x {} +short<div class='yarpp-related-rss'>

Related posts:<ol>
<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>
<li><a href="http://www.linuxask.com/questions/how-to-resolve-the-binrm-argument-list-too-long-error" rel="bookmark" title="How to resolve the &#8216;/bin/rm: Argument list too long&#8217; error">How to resolve the &#8216;/bin/rm: Argument list too long&#8217; error </a></li>
<li><a href="http://www.linuxask.com/questions/how-to-change-hostname-in-ubuntu" rel="bookmark" title="How to change hostname in Ubuntu?">How to change hostname in Ubuntu? </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>Mass resolve ip to hostname</p>
<p><strong>Answer:</strong></p>
<p>If you have a list of IPs and need to resolve to the hostname(via reverse DNS lookup), you can use the following command:</p>
<pre><code>cat ip_addresses.txt | xargs -n 1 -P 100  -i dig -x {} +short</code></pre>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<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>
<li><a href="http://www.linuxask.com/questions/how-to-resolve-the-binrm-argument-list-too-long-error" rel="bookmark" title="How to resolve the &#8216;/bin/rm: Argument list too long&#8217; error">How to resolve the &#8216;/bin/rm: Argument list too long&#8217; error </a></li>
<li><a href="http://www.linuxask.com/questions/how-to-change-hostname-in-ubuntu" rel="bookmark" title="How to change hostname in Ubuntu?">How to change hostname in Ubuntu? </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/mass-resolve-ip-to-hostname/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
