<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>ShinePHP Forum &#187; Tag: find - Recent Posts</title>
		<link>http://shinephp.com/community/tags/find</link>
		<description>General Web development, PHP, MySQL, WordPress and its plugins discussions</description>
		<language>en-US</language>
		<pubDate>Sun, 05 Feb 2012 16:07:56 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://shinephp.com/community/search.php</link>
		</textInput>
		<atom:link href="http://shinephp.com/community/rss/tags/find" rel="self" type="application/rss+xml" />

		<item>
			<title>vladimir on "Mass files or folders permissions change"</title>
			<link>http://shinephp.com/community/topic/mass-files-or-folders-permissions-change#post-9</link>
			<pubDate>Mon, 08 Mar 2010 04:23:08 +0000</pubDate>
			<dc:creator>vladimir</dc:creator>
			<guid isPermaLink="false">9@http://shinephp.com/community/</guid>
			<description>&#60;p&#62;You need to use &#60;code&#62;find&#60;/code&#62; command together with &#60;code&#62;chmod&#60;/code&#62;.&#60;br /&#62;
For example, if you need to set 644 permissions to all files in the current directory including all its subdirectories use this command&#60;/p&#62;


&#60;div class=&#34;bb_syntax&#34;&#62;&#60;div class=&#34;code&#34;&#62;&#60;pre class=&#34;shell&#34; style=&#34;font-family:monospace;&#34;&#62;find . -type f -exec chmod 644 {} \;&#60;/pre&#62;&#60;/div&#62;&#60;/div&#62;



&#60;p&#62;if you need to set 755 permissions to all subdirectories in the current directory  use this command&#60;/p&#62;


&#60;div class=&#34;bb_syntax&#34;&#62;&#60;div class=&#34;code&#34;&#62;&#60;pre class=&#34;shell&#34; style=&#34;font-family:monospace;&#34;&#62;find . -type d -exec chmod 755 {} \;&#60;/pre&#62;&#60;/div&#62;&#60;/div&#62;



&#60;p&#62;More examples for typical usage of &#60;code&#62;find&#60;/code&#62; command can be found here, at&#60;br /&#62;
&#60;a href=&#34;http://johnmeister.com/CS/UNIX/FIND/find-usage.html&#34; title=&#34;find examples&#34;&#62;find examples&#60;/a&#62; page.&#60;/p&#62;
&#60;p&#62;To change files and directories owner use this command&#60;/p&#62;


&#60;div class=&#34;bb_syntax&#34;&#62;&#60;div class=&#34;code&#34;&#62;&#60;pre class=&#34;shell&#34; style=&#34;font-family:monospace;&#34;&#62;chown -Rv username somedir&#60;/pre&#62;&#60;/div&#62;&#60;/div&#62;



&#60;p&#62;To change files and directories group use this command&#60;/p&#62;


&#60;div class=&#34;bb_syntax&#34;&#62;&#60;div class=&#34;code&#34;&#62;&#60;pre class=&#34;shell&#34; style=&#34;font-family:monospace;&#34;&#62;chgrp -Rv groupname somedir&#60;/pre&#62;&#60;/div&#62;&#60;/div&#62;


</description>
		</item>
		<item>
			<title>garvs on "Mass files or folders permissions change"</title>
			<link>http://shinephp.com/community/topic/mass-files-or-folders-permissions-change#post-8</link>
			<pubDate>Mon, 08 Mar 2010 04:14:30 +0000</pubDate>
			<dc:creator>garvs</dc:creator>
			<guid isPermaLink="false">8@http://shinephp.com/community/</guid>
			<description>&#60;p&#62;How to apply permissions change command to all files in the directory including all its subdirectories tree? Separately to the files and separately to the directories?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>vladimir on "How to delete a huge quant of files at once"</title>
			<link>http://shinephp.com/community/topic/how-to-delete-a-huge-quant-of-files-at-once#post-7</link>
			<pubDate>Sun, 07 Mar 2010 03:57:29 +0000</pubDate>
			<dc:creator>vladimir</dc:creator>
			<guid isPermaLink="false">7@http://shinephp.com/community/</guid>
			<description>&#60;p&#62;This trick will help&#60;/p&#62;


&#60;div class=&#34;bb_syntax&#34;&#62;&#60;div class=&#34;code&#34;&#62;&#60;pre class=&#34;shell&#34; style=&#34;font-family:monospace;&#34;&#62;find . -maxdepth 1 -name 'cache_*' -exec rm {} \;&#60;/pre&#62;&#60;/div&#62;&#60;/div&#62;



&#60;p&#62;This way 'rm' command will delete files one by one according to 'find' command search results. If you wish to delete all files in the directory tree at the current '.' directory remove '-maxdepth 1' option from 'find' command.&#60;/p&#62;
&#60;p&#62;This variant will help also&#60;/p&#62;


&#60;div class=&#34;bb_syntax&#34;&#62;&#60;div class=&#34;code&#34;&#62;&#60;pre class=&#34;shell&#34; style=&#34;font-family:monospace;&#34;&#62;ls cache_* &#124; xargs rm&#60;/pre&#62;&#60;/div&#62;&#60;/div&#62;


</description>
		</item>
		<item>
			<title>garvs on "How to delete a huge quant of files at once"</title>
			<link>http://shinephp.com/community/topic/how-to-delete-a-huge-quant-of-files-at-once#post-5</link>
			<pubDate>Sun, 07 Mar 2010 03:49:47 +0000</pubDate>
			<dc:creator>garvs</dc:creator>
			<guid isPermaLink="false">5@http://shinephp.com/community/</guid>
			<description>&#60;p&#62;I tried to delete a few thousands files with one&#60;br /&#62;
&#60;code&#62;rm cache_*&#60;/code&#62;&#60;br /&#62;
command. But it returned error message that 'Argument list too long'. Can you advice how to resolve this issue?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>

