InfoHeap
Tech tutorials, tips, tools and more
Navigation
  • Home
  • Tutorials
    • CSS tutorials & examples
    • CSS properties
    • Javascript cookbook
    • Linux/Unix Command Line
    • Mac
    • PHP
      • PHP functions online
      • PHP regex
    • WordPress
  • Online Tools
    • Text utilities
    • Online Lint Tools
search

Mac Finder

  • Change search default folder to current folder
  • Mac Finder - how to change default folder
  • Open Finder from terminal
  • Search files by name
  • Search system hidden files
 
  • Home
  • > Tutorials
  • > Mac
  • > Mac Finder

How to search files by name in Mac Finder

By admin on Nov 24, 2015

Mac finder can be used to find files on Mac or in a specific folder. By default search is done on file contents. Sometimes we just want to search files having certain string in the name. Here are quick steps to search files by name (substring) using Mac Finder:

Pre-requisite for searching files by name in Finder

For the purpose of this article we will create two test files. Create a directory tmp and create two files in it. Name first file hello.txt and put the following content in it:

Hello world

Create second file file1.txt with the following content:

hello.txt

Steps to do file name search in Finder

  1. Open Finder, select the folder tmp created above and type hello.txt in search box. It should prompt you to search only in file (Name matches:) as shown below:
    mac-finder-search-with-name-search-promptNote that by default both files (hello.txt and file1.txt) are being shown in results as hello.txt has matched files name in one file and content text in another.
  2. Select “Name matches: hello.txt” option. This will search hello.txt only in file name. Here are the results for name search.
    mac-finder-name-searchNote that this time (Name search) only hello.txt is appearing in search results.

Suggested posts:

  1. Mac Finder – how to search system hidden files
  2. Mac finder – change search default folder to current folder
  3. Mac Finder – how to change default folder
  4. Mac – search files on command line using mdfind
  5. Bulk convert jpeg files to png using sips on mac
  6. How to delete files starting with dash/hyphen
  7. Mac – hide and unhide a file or directory
  8. Create gmail filter from search
Share this article: share on facebook share on linkedin tweet this submit to reddit
Posted in Tutorials | Tagged Mac, Mac Finder, Tutorials

Follow InfoHeap

facebook
twitter
googleplus
  • Browse site
  • Article Topics
  • Article archives
  • Recent Articles
  • Contact Us
  • Omoney
Popular Topics: Android Development | AngularJS | Apache | AWS and EC2 | Bash shell scripting | Chrome developer tools | CSS | CSS cookbook | CSS properties | CSS Pseudo Classes | CSS selectors | CSS3 | CSS3 flexbox | Devops | Git | HTML | HTML5 | Java | Javascript | Javascript cookbook | Javascript DOM | jQuery | Kubernetes | Linux | Linux/Unix Command Line | Mac | Mac Command Line | Mysql | Networking | Node.js | Online Tools | PHP | PHP cookbook | PHP Regex | Python | Python array | Python cookbook | SEO | Site Performance | SSH | Ubuntu Linux | Web Development | Webmaster | Wordpress | Wordpress customization | Wordpress How To | Wordpress Mysql Queries

Copyright © 2023 InfoHeap.

Powered by WordPress