<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I used to be of the:<div><br></div><div>find / | grep -i partialname</div><div><br></div><div>Most distros have slocate, but you have to be root and its generally not what I mean because I'm usually looking for something thats changed in the past few minutes, not something that would be picked up by a nightly index.</div><div><br></div><div>find is the best option for finding something right away. For example, here is the last find command I ran in my history. I wanted to find an uninstall script I couldn't remember where in my directory I put it.</div><div><br></div><div>find /home/primechuck/order_source -xdev -type f -iname '*uninstall*' </div><div><br></div><div>Which means</div><div><br></div><div>find PATH -xdev (Don't cross filesystems) -type f (only look for files not directories) -iname '*uninstall*' match the pattern ignoring case.</div><div><br></div><div><br></div><div><div><div>On Jan 2, 2012, at 3:37 PM, Tom Sellers wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>What is the Ubuntu linux command to locate a file anywhere on the disk? I need to have it search the whole directory structure not just the current directory for the file. <br></div><div><br></div><div>If I use find by itself it lists all directory items but it I list the file name after the find command it only seems to search the local directory and tells me that it is not there. <br></div><div><br></div><div>Surely there is a command to do this. I just haven't been able to find it.</div><div><br></div></div></div>_______________________________________________<br>Cialug mailing list<br><a href="mailto:Cialug@cialug.org">Cialug@cialug.org</a><br>http://cialug.org/mailman/listinfo/cialug<br></blockquote></div><br></div></body></html>