<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.scott5.org/index.php?action=history&amp;feed=atom&amp;title=Find</id>
	<title>Find - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.scott5.org/index.php?action=history&amp;feed=atom&amp;title=Find"/>
	<link rel="alternate" type="text/html" href="https://wiki.scott5.org/index.php?title=Find&amp;action=history"/>
	<updated>2026-04-13T00:31:07Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://wiki.scott5.org/index.php?title=Find&amp;diff=440&amp;oldid=prev</id>
		<title>Scott at 18:28, 4 February 2011</title>
		<link rel="alternate" type="text/html" href="https://wiki.scott5.org/index.php?title=Find&amp;diff=440&amp;oldid=prev"/>
		<updated>2011-02-04T18:28:53Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{lowercase title}}&lt;br /&gt;
To find files under /home whose names start with &amp;quot;.x&amp;quot;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
find /home/ -name &amp;quot;.x*&amp;quot; -print&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To find &amp;lt;code&amp;gt;.xscreensaver&amp;lt;/code&amp;gt; files under &amp;lt;code&amp;gt;/home&amp;lt;/code&amp;gt; and read their mode lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
find /home -name &amp;quot;.xscreensaver&amp;quot; -exec grep mode {} \;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To find all files under the &amp;lt;code&amp;gt;/bin&amp;lt;/code&amp;gt; tree and apply &amp;lt;code&amp;gt;md5sum&amp;lt;/code&amp;gt; to them:&lt;br /&gt;
&amp;lt;code&amp;gt;find /bin -type f -exec md5sum {} \;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To find files that have been modified in the last 40 days:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
find . -mtime -40 -print&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To find files that have been modified more than 40 days ago:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
find . -mtime +40 -print&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To find files that have been modified in the last 40 days and then sort by date:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
find . -mtime -40 -print | xargs ls -ldt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To remove P-files that are more than one day old:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
find /usr/g/mrraw -name P\* ! -mtime 1 -exec rm -f {} \;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Find files owned by user 100 (useful after a user is deleted):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
find -user 100 -print&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Find root setuid/setgid binaries:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
find / -xdev -type f -perm +ug=s&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Scott</name></author>
	</entry>
</feed>