<?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>Mohsin Sumar &#187; search using ssh</title>
	<atom:link href="http://www.mohsinsumar.com/tag/search-using-ssh/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mohsinsumar.com</link>
	<description>Zend Certified Engineer, PHP Professional, Designer &#38; Web Developer</description>
	<lastBuildDate>Thu, 22 Jul 2010 23:07:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>SSH Commands to find files on Linux Server</title>
		<link>http://www.mohsinsumar.com/ssh/ssh-commands-to-find-files-on-linux-server/</link>
		<comments>http://www.mohsinsumar.com/ssh/ssh-commands-to-find-files-on-linux-server/#comments</comments>
		<pubDate>Sun, 27 Sep 2009 04:49:26 +0000</pubDate>
		<dc:creator>Mohsin Sumar</dc:creator>
				<category><![CDATA[SSH]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[email search results using ssh]]></category>
		<category><![CDATA[file search]]></category>
		<category><![CDATA[PuTTY]]></category>
		<category><![CDATA[save ssh search results to file]]></category>
		<category><![CDATA[search using ssh]]></category>

		<guid isPermaLink="false">http://www.mohsinsumar.com/?p=52</guid>
		<description><![CDATA[A couple of useful SSH commands to find files on your linux server.]]></description>
			<content:encoded><![CDATA[<p>If you have a dedicated server or a VPS - or any Linux machine with SSH access, the following commands may be useful to you if you are looking to find some files quickly. <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty" target="_blank">PuTTY</a> is a good telnet/SSH client if you don't already have one. Let's get started.</p>
<p>#1: If you are looking for a particular file in /home directory</p>
<pre><span style="color: #800000;">find /home -name filename</span></pre>
<p>#2: If you are looking for files whose name is starting with "filename" in public_html directories only, you can use the following command:-</p>
<pre><span style="color: #800000;">find /home/*/public_html -name filename* </span></pre>
<p>#3: Instead of viewing your search results in command line, you can write it to file by using this:</p>
<pre><span style="color: #800000;">find /home/*/public_html -name filename* &gt; /home/filename_search.txt</span></pre>
<p>#4: Alternatively, you can send it via e-mail directly from server using the command below. Don't forget to replace "Subject Here" with your email subject, and "email.address@domain" with your email ID.</p>
<pre><span style="color: #800000;">find /home/*/public_html -name filename* |mail -s "Subject Here" e-mail.address@domain
</span></pre>
<p>I hope this was useful.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mohsinsumar.com/ssh/ssh-commands-to-find-files-on-linux-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
