Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Finding a file (application)
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="rman" data-source="post: 43221" data-attributes="member: 23"><p>I believe that locate will only stuff that is defined in your path statement. Whereas find will search the complete disk.</p><p></p><p>If you are trying to locate all files with the .shn extension, issue the following command:</p><p></p><p>find / -name "*.shn" -exec ls -l {} \;</p><p></p><p>The above command will find all occurances of any file with the extension of .shn and give the complete path of where the file is locates. You will also see the size, date the file was created, owner of the file and the group of the file.</p></blockquote><p></p>
[QUOTE="rman, post: 43221, member: 23"] I believe that locate will only stuff that is defined in your path statement. Whereas find will search the complete disk. If you are trying to locate all files with the .shn extension, issue the following command: find / -name "*.shn" -exec ls -l {} \; The above command will find all occurances of any file with the extension of .shn and give the complete path of where the file is locates. You will also see the size, date the file was created, owner of the file and the group of the file. [/QUOTE]
Verification
Name this item. 🍎
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Finding a file (application)
Top