<?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=How_to_find_an_executable</id>
	<title>How to find an executable - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.scott5.org/index.php?action=history&amp;feed=atom&amp;title=How_to_find_an_executable"/>
	<link rel="alternate" type="text/html" href="https://wiki.scott5.org/index.php?title=How_to_find_an_executable&amp;action=history"/>
	<updated>2026-05-27T19:47:01Z</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=How_to_find_an_executable&amp;diff=315&amp;oldid=prev</id>
		<title>Scott: Created page with &#039; == whereis == &lt;pre&gt; whereis &lt;executablename&gt; &lt;/pre&gt;  &lt;code&gt;whereis&lt;/code&gt; searches through some standard locations for the name given  == which == &lt;pre&gt; which &lt;executablename&gt; &lt;…&#039;</title>
		<link rel="alternate" type="text/html" href="https://wiki.scott5.org/index.php?title=How_to_find_an_executable&amp;diff=315&amp;oldid=prev"/>
		<updated>2011-02-02T22:41:22Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039; == whereis == &amp;lt;pre&amp;gt; whereis &amp;lt;executablename&amp;gt; &amp;lt;/pre&amp;gt;  &amp;lt;code&amp;gt;whereis&amp;lt;/code&amp;gt; searches through some standard locations for the name given  == which == &amp;lt;pre&amp;gt; which &amp;lt;executablename&amp;gt; &amp;lt;…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
== whereis ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
whereis &amp;lt;executablename&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;whereis&amp;lt;/code&amp;gt; searches through some standard locations for the name given&lt;br /&gt;
&lt;br /&gt;
== which ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
which &amp;lt;executablename&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
will start at the beginning of your path and search each entry for the file name. It will then return the first file that matches. While whereis may return multiple locations, which will only return one - the file that is executed if you don&amp;#039;t specifiy a full path.&lt;br /&gt;
&lt;br /&gt;
if both of those fail, you can always try&lt;br /&gt;
&lt;br /&gt;
== find ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
find /usr -name &amp;lt;executablename&amp;gt; -print&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which will search every directory in the &amp;lt;code&amp;gt;/usr&amp;lt;/code&amp;gt; subtree for the file. It&amp;#039;s slow.&lt;/div&gt;</summary>
		<author><name>Scott</name></author>
	</entry>
</feed>