<?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! &#187; Basic Linux</title>
	<atom:link href="http://www.linuxask.com/topics/basic-linux/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>How to change filename case of all files in a directory</title>
		<link>http://www.linuxask.com/questions/how-to-change-filename-case-of-all-files-in-a-directory</link>
		<comments>http://www.linuxask.com/questions/how-to-change-filename-case-of-all-files-in-a-directory#comments</comments>
		<pubDate>Fri, 30 May 2014 09:38:28 +0000</pubDate>
		<dc:creator><![CDATA[Linux Ask!]]></dc:creator>
				<category><![CDATA[Advanced Linux]]></category>
		<category><![CDATA[Commands]]></category>
		<category><![CDATA[command]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=4410</guid>
		<description><![CDATA[How to change filename case of all files in a directory Answer: If you want to change the case of filename of all files in a directory, e.g. change to all UPPER case, you can use: # rename 'y/a-z/A-Z/' *<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/convert-all-text-in-a-file-from-upper-case-to-lower-case" rel="bookmark" title="Convert all text in a file from upper-case to lower-case">Convert all text in a file from upper-case to lower-case </a></li>
<li><a href="http://www.linuxask.com/questions/case-conversion-of-string-in-linux" rel="bookmark" title="Case conversion of string in Linux">Case conversion of string in Linux </a></li>
<li><a href="http://www.linuxask.com/questions/how-to-change-the-mysql-temporary-directory" rel="bookmark" title="How to change the MySQL temporary directory">How to change the MySQL temporary directory </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>How to change filename case of all files in a directory</p>
<p><strong>Answer:</strong></p>
<p>If you want to change the case of filename of all files in a directory, e.g. change to all <strong>UPPER</strong> case, you can use:</p>
<p><code># rename 'y/a-z/A-Z/' *</code></p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/convert-all-text-in-a-file-from-upper-case-to-lower-case" rel="bookmark" title="Convert all text in a file from upper-case to lower-case">Convert all text in a file from upper-case to lower-case </a></li>
<li><a href="http://www.linuxask.com/questions/case-conversion-of-string-in-linux" rel="bookmark" title="Case conversion of string in Linux">Case conversion of string in Linux </a></li>
<li><a href="http://www.linuxask.com/questions/how-to-change-the-mysql-temporary-directory" rel="bookmark" title="How to change the MySQL temporary directory">How to change the MySQL temporary directory </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/how-to-change-filename-case-of-all-files-in-a-directory/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Use Perl to split string instead of awk</title>
		<link>http://www.linuxask.com/questions/use-perl-to-split-string-instead-of-awk</link>
		<comments>http://www.linuxask.com/questions/use-perl-to-split-string-instead-of-awk#comments</comments>
		<pubDate>Thu, 29 May 2014 08:04:28 +0000</pubDate>
		<dc:creator><![CDATA[Linux Ask!]]></dc:creator>
				<category><![CDATA[Advanced Linux]]></category>
		<category><![CDATA[Commands]]></category>
		<category><![CDATA[Perl]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=4402</guid>
		<description><![CDATA[Use Perl to split string instead of awk Answer: If you know Perl well, there is no need to use awk to do string processing such as string splitting, it is easy with Perl also, e.g. # echo "foo,bar,k3" &#124; perl -F',' -lane 'print $F[1]' bar<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/split-a-string-into-array-in-perl" rel="bookmark" title="Split a string into array in Perl">Split a string into array in Perl </a></li>
<li><a href="http://www.linuxask.com/questions/trim-a-string-using-perl" rel="bookmark" title="Trim a string using Perl">Trim a string using Perl </a></li>
<li><a href="http://www.linuxask.com/questions/remove-the-last-character-of-a-string-in-perl" rel="bookmark" title="Remove the last character of a string in Perl">Remove the last character of a string in Perl </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>Use Perl to split string instead of awk</p>
<p><strong>Answer:</strong></p>
<p>If you know Perl well, there is no need to use awk to do string processing such as string splitting, it is easy with Perl also, e.g.</p>
<pre><code># echo "foo,bar,k3"  | perl -F',' -lane 'print $F[1]'
bar
</code></pre>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/split-a-string-into-array-in-perl" rel="bookmark" title="Split a string into array in Perl">Split a string into array in Perl </a></li>
<li><a href="http://www.linuxask.com/questions/trim-a-string-using-perl" rel="bookmark" title="Trim a string using Perl">Trim a string using Perl </a></li>
<li><a href="http://www.linuxask.com/questions/remove-the-last-character-of-a-string-in-perl" rel="bookmark" title="Remove the last character of a string in Perl">Remove the last character of a string in Perl </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/use-perl-to-split-string-instead-of-awk/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to get file name only with find command?</title>
		<link>http://www.linuxask.com/questions/how-to-get-file-name-only-with-find-command</link>
		<comments>http://www.linuxask.com/questions/how-to-get-file-name-only-with-find-command#comments</comments>
		<pubDate>Thu, 29 May 2014 07:29:38 +0000</pubDate>
		<dc:creator><![CDATA[Linux Ask!]]></dc:creator>
				<category><![CDATA[Advanced Linux]]></category>
		<category><![CDATA[Commands]]></category>
		<category><![CDATA[command]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=4400</guid>
		<description><![CDATA[How to get file name only with find command? Answer: To show only the filename of Linux command, you can use # find /dir -type f -printf "%f\n" file1 file2 file3 ...<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/combine-multiple-images-into-a-single-image-with-imagemagick" rel="bookmark" title="Combine multiple images into a single image with ImageMagick">Combine multiple images into a single image with ImageMagick </a></li>
<li><a href="http://www.linuxask.com/questions/join-lines-on-a-common-field" rel="bookmark" title="Join lines on a common field">Join lines on a common field </a></li>
<li><a href="http://www.linuxask.com/questions/how-to-merge-a-specific-file-from-another-branch-in-git" rel="bookmark" title="How to merge a specific file from another branch in Git">How to merge a specific file from another branch in Git </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>How to get file name only with find command?</p>
<p><strong>Answer:</strong></p>
<p>To show only the filename of Linux command, you can use</p>
<pre><code># find /dir -type f -printf "%f\n"
file1
file2
file3
...
</code></pre>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/combine-multiple-images-into-a-single-image-with-imagemagick" rel="bookmark" title="Combine multiple images into a single image with ImageMagick">Combine multiple images into a single image with ImageMagick </a></li>
<li><a href="http://www.linuxask.com/questions/join-lines-on-a-common-field" rel="bookmark" title="Join lines on a common field">Join lines on a common field </a></li>
<li><a href="http://www.linuxask.com/questions/how-to-merge-a-specific-file-from-another-branch-in-git" rel="bookmark" title="How to merge a specific file from another branch in Git">How to merge a specific file from another branch in Git </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/how-to-get-file-name-only-with-find-command/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Replace newline by comma</title>
		<link>http://www.linuxask.com/questions/replace-newline-by-comma</link>
		<comments>http://www.linuxask.com/questions/replace-newline-by-comma#comments</comments>
		<pubDate>Thu, 29 May 2014 06:38:05 +0000</pubDate>
		<dc:creator><![CDATA[Linux Ask!]]></dc:creator>
				<category><![CDATA[Commands]]></category>
		<category><![CDATA[command]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=4397</guid>
		<description><![CDATA[Replace newline by comma Answer: To replace all newline in a file by command, you can use the command # tr '\n' ',' < input.txt > output.txt<div class='yarpp-related-rss'>

Related posts:<ol>
<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/echo-without-a-newline-at-the-end" rel="bookmark" title="Echo without a newline at the end">Echo without a newline at the end </a></li>
<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>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>Replace newline by comma</p>
<p><strong>Answer:</strong></p>
<p>To replace all newline in a file by command, you can use the command</p>
<p><code># tr '\n' ',' < input.txt > output.txt</code></p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<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/echo-without-a-newline-at-the-end" rel="bookmark" title="Echo without a newline at the end">Echo without a newline at the end </a></li>
<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>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/replace-newline-by-comma/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to check the SSL cert expiration date using command?</title>
		<link>http://www.linuxask.com/questions/how-to-check-the-ssl-cert-expiration-date-using-command</link>
		<comments>http://www.linuxask.com/questions/how-to-check-the-ssl-cert-expiration-date-using-command#comments</comments>
		<pubDate>Fri, 10 Jan 2014 04:05:06 +0000</pubDate>
		<dc:creator><![CDATA[Linux Ask!]]></dc:creator>
				<category><![CDATA[Commands]]></category>
		<category><![CDATA[ssl]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=4358</guid>
		<description><![CDATA[How to check the SSL cert expiration date using command? Answer: To check the SSL cert expiration date of a domain, you can use the following command: # echo &#124; openssl s_client -connect www.google.com:443 2>/dev/null &#124; openssl x509 -noout -dates notBefore=Dec 11 12:02:58 2013 GMT notAfter=Apr 10 00:00:00 2014 GMT<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/simple-date-calculation-using-date-command" rel="bookmark" title="Simple date calculation using date command">Simple date calculation using date command </a></li>
<li><a href="http://www.linuxask.com/questions/how-to-check-if-a-rsa-key-file-is-valid" rel="bookmark" title="How to check if a RSA key file is valid">How to check if a RSA key file is valid </a></li>
<li><a href="http://www.linuxask.com/questions/list-file-by-date" rel="bookmark" title="List file by date">List file by date </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>How to check the SSL cert expiration date using command?</p>
<p><strong>Answer:</strong></p>
<p>To check the SSL cert expiration date of a domain, you can use the following command:</p>
<pre><code># echo | openssl s_client -connect www.google.com:443 2>/dev/null | openssl x509 -noout -dates
notBefore=Dec 11 12:02:58 2013 GMT
notAfter=Apr 10 00:00:00 2014 GMT
</code></pre>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/simple-date-calculation-using-date-command" rel="bookmark" title="Simple date calculation using date command">Simple date calculation using date command </a></li>
<li><a href="http://www.linuxask.com/questions/how-to-check-if-a-rsa-key-file-is-valid" rel="bookmark" title="How to check if a RSA key file is valid">How to check if a RSA key file is valid </a></li>
<li><a href="http://www.linuxask.com/questions/list-file-by-date" rel="bookmark" title="List file by date">List file by date </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/how-to-check-the-ssl-cert-expiration-date-using-command/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Parallel the execution of a job that read from stdin</title>
		<link>http://www.linuxask.com/questions/parallel-the-execution-of-a-job-that-read-from-stdin</link>
		<comments>http://www.linuxask.com/questions/parallel-the-execution-of-a-job-that-read-from-stdin#comments</comments>
		<pubDate>Sat, 28 Dec 2013 06:39:32 +0000</pubDate>
		<dc:creator><![CDATA[Linux Ask!]]></dc:creator>
				<category><![CDATA[Advanced Linux]]></category>
		<category><![CDATA[Commands]]></category>
		<category><![CDATA[parallel]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=4355</guid>
		<description><![CDATA[Parallel the execution of a job that read from stdin Answer: Assume you have a huge list of file, e.g. line1 line2 line3 .. You want to "feed every line" of this file to an external program that read from stdin, to parallel it, you can use the gnu parallel, e.g. cat input.txt &#124; parallel <a href='http://www.linuxask.com/questions/parallel-the-execution-of-a-job-that-read-from-stdin' class='excerpt-more'>[...]</a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/executing-jobs-in-parallel-using-gnu-parallel" rel="bookmark" title="Executing jobs in parallel using GNU parallel">Executing jobs in parallel using GNU parallel </a></li>
<li><a href="http://www.linuxask.com/questions/how-to-use-pipe-in-linux" rel="bookmark" title="How to use pipe in Linux">How to use pipe in Linux </a></li>
<li><a href="http://www.linuxask.com/questions/run-tasks-in-parallel-with-xargs" rel="bookmark" title="Run tasks in parallel with xargs">Run tasks in parallel with xargs </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>Parallel the execution of a job that read from stdin</p>
<p><strong>Answer:</strong></p>
<p>Assume you have a huge list of file, e.g.</p>
<pre>
line1
line2
line3
..
</pre>
<p>You want to <strong>"feed every line"</strong> of this file to an external program that read from stdin, to parallel it, you can use the gnu parallel, e.g.</p>
<p><code>cat input.txt | parallel -j16 -N1 --pipe myprogram</code></p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/executing-jobs-in-parallel-using-gnu-parallel" rel="bookmark" title="Executing jobs in parallel using GNU parallel">Executing jobs in parallel using GNU parallel </a></li>
<li><a href="http://www.linuxask.com/questions/how-to-use-pipe-in-linux" rel="bookmark" title="How to use pipe in Linux">How to use pipe in Linux </a></li>
<li><a href="http://www.linuxask.com/questions/run-tasks-in-parallel-with-xargs" rel="bookmark" title="Run tasks in parallel with xargs">Run tasks in parallel with xargs </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/parallel-the-execution-of-a-job-that-read-from-stdin/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to show all listening ports in Mac OSX</title>
		<link>http://www.linuxask.com/questions/how-to-show-all-listening-ports-in-mac-osx</link>
		<comments>http://www.linuxask.com/questions/how-to-show-all-listening-ports-in-mac-osx#comments</comments>
		<pubDate>Fri, 02 Aug 2013 15:44:29 +0000</pubDate>
		<dc:creator><![CDATA[Linux Ask!]]></dc:creator>
				<category><![CDATA[Commands]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[networking]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=4299</guid>
		<description><![CDATA[How to show all listening ports in Mac OSX Answer: To show all the listening ports in Mac OSX, try # lsof -iTCP -sTCP:LISTEN<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/find-out-which-programs-are-listening-tcp-port" rel="bookmark" title="Find out which programs are listening TCP port">Find out which programs are listening TCP port </a></li>
<li><a href="http://www.linuxask.com/questions/kill-all-processes-listening-on-a-particular-port" rel="bookmark" title="Kill all processes listening on a particular port">Kill all processes listening on a particular port </a></li>
<li><a href="http://www.linuxask.com/questions/show-hidden-files-in-mac-osx" rel="bookmark" title="Show hidden files in Mac OSX">Show hidden files in Mac OSX </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>How to show all listening ports in Mac OSX</p>
<p><strong>Answer:</strong></p>
<p>To show all the listening ports in Mac OSX, try</p>
<p><code># lsof -iTCP -sTCP:LISTEN</code></p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/find-out-which-programs-are-listening-tcp-port" rel="bookmark" title="Find out which programs are listening TCP port">Find out which programs are listening TCP port </a></li>
<li><a href="http://www.linuxask.com/questions/kill-all-processes-listening-on-a-particular-port" rel="bookmark" title="Kill all processes listening on a particular port">Kill all processes listening on a particular port </a></li>
<li><a href="http://www.linuxask.com/questions/show-hidden-files-in-mac-osx" rel="bookmark" title="Show hidden files in Mac OSX">Show hidden files in Mac OSX </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/how-to-show-all-listening-ports-in-mac-osx/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>File content redirection without using cat</title>
		<link>http://www.linuxask.com/questions/file-content-redirection-without-using-cat</link>
		<comments>http://www.linuxask.com/questions/file-content-redirection-without-using-cat#comments</comments>
		<pubDate>Thu, 25 Jul 2013 09:11:24 +0000</pubDate>
		<dc:creator><![CDATA[Linux Ask!]]></dc:creator>
				<category><![CDATA[Bash]]></category>
		<category><![CDATA[Commands]]></category>
		<category><![CDATA[cat]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=4281</guid>
		<description><![CDATA[File content redirection without using cat Answer: It is not uncommon that people have abused the command `cat` for many purpose, e.g. file I/O redirection cat data.txt &#124; sed 's/foo/bar/s' You can avoid the cat command by the following commands: data.txt < sed 's/foo/bar/s' sed 's/foo/bar/s' < data.txt Both directions are okay. In fact, when <a href='http://www.linuxask.com/questions/file-content-redirection-without-using-cat' class='excerpt-more'>[...]</a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/synchronize-data-on-disk-with-memory" rel="bookmark" title="Synchronize data on disk with memory">Synchronize data on disk with memory </a></li>
<li><a href="http://www.linuxask.com/questions/show-the-content-of-gzipped-text-file" rel="bookmark" title="Show the content of gzipped text file">Show the content of gzipped text file </a></li>
<li><a href="http://www.linuxask.com/questions/permission-denied-when-doing-redirection-with-sudo" rel="bookmark" title="Permission denied when doing redirection with sudo">Permission denied when doing redirection with sudo </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>File content redirection without using cat</p>
<p><strong>Answer:</strong></p>
<p>It is not uncommon that people have abused the command `<strong>cat</strong>` for many purpose, e.g. file I/O redirection</p>
<pre><code>cat data.txt | sed 's/foo/bar/s'</code></pre>
<p>You can avoid the <strong>cat</strong> command by the following commands:</p>
<pre><code>data.txt < sed 's/foo/bar/s'
sed 's/foo/bar/s' < data.txt</code></pre>
<p>Both directions are okay.</p>
<p>In fact, when you better understand the usage of some commands, you might find out that redirection is completely not needed.</p>
<p>e.g.</p>
<p><code>sed 's/foo/bar/s' data.txt</code></p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/synchronize-data-on-disk-with-memory" rel="bookmark" title="Synchronize data on disk with memory">Synchronize data on disk with memory </a></li>
<li><a href="http://www.linuxask.com/questions/show-the-content-of-gzipped-text-file" rel="bookmark" title="Show the content of gzipped text file">Show the content of gzipped text file </a></li>
<li><a href="http://www.linuxask.com/questions/permission-denied-when-doing-redirection-with-sudo" rel="bookmark" title="Permission denied when doing redirection with sudo">Permission denied when doing redirection with sudo </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/file-content-redirection-without-using-cat/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to check how many established connection of my web server?</title>
		<link>http://www.linuxask.com/questions/how-to-check-how-many-established-connection-of-my-web-server</link>
		<comments>http://www.linuxask.com/questions/how-to-check-how-many-established-connection-of-my-web-server#comments</comments>
		<pubDate>Thu, 18 Jul 2013 04:16:13 +0000</pubDate>
		<dc:creator><![CDATA[Linux Ask!]]></dc:creator>
				<category><![CDATA[Advanced Linux]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Commands]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[Squid]]></category>
		<category><![CDATA[networking]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=4277</guid>
		<description><![CDATA[How to check how many established connection of my web server? Answer: Assume you server is listening on port 80, you can check how many established connection to this port with the following command: netstat -an &#124; grep :80 &#124; grep ESTABLISHED &#124; wc -l 4919<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/check-the-number-of-active-apache-connection" rel="bookmark" title="Check the number of active Apache connection">Check the number of active Apache connection </a></li>
<li><a href="http://www.linuxask.com/questions/check-for-the-number-of-connection-from-a-particular-ip-address" rel="bookmark" title="Check for the number of connection from a particular IP address">Check for the number of connection from a particular IP address </a></li>
<li><a href="http://www.linuxask.com/questions/how-to-kill-a-tcp-connection-using-tcpkill" rel="bookmark" title="How to kill a TCP connection using tcpkill?">How to kill a TCP connection using tcpkill? </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>How to check how many established connection of my web server?</p>
<p><strong>Answer:</strong></p>
<p>Assume you server is listening on <strong>port 80</strong>, you can check how many established connection to this port with the following command:</p>
<pre><code>netstat -an | grep :80 | grep ESTABLISHED | wc -l
4919
</code></pre>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/check-the-number-of-active-apache-connection" rel="bookmark" title="Check the number of active Apache connection">Check the number of active Apache connection </a></li>
<li><a href="http://www.linuxask.com/questions/check-for-the-number-of-connection-from-a-particular-ip-address" rel="bookmark" title="Check for the number of connection from a particular IP address">Check for the number of connection from a particular IP address </a></li>
<li><a href="http://www.linuxask.com/questions/how-to-kill-a-tcp-connection-using-tcpkill" rel="bookmark" title="How to kill a TCP connection using tcpkill?">How to kill a TCP connection using tcpkill? </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/how-to-check-how-many-established-connection-of-my-web-server/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to copy symbolic links as real files when using rsync</title>
		<link>http://www.linuxask.com/questions/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><![CDATA[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>
]]></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>
		</item>
	</channel>
</rss>
