Find and Locate

Revision as of 10:12, 28 March 2019 by Admin (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Find and Locate - Searching for files in Linux

Use the find command to search for a file or pattern.

here are examples:

  find ./ -name filename   (locate filename in or below the
  current directory path)
  find / -name 'filename' 2>/dev/null   (locate filename 
  anywhere up from root filesystem)
  find ./ -iname 'filen*'   (locate all files begin with
  filen and ignore case)
Last modified on 28 March 2019, at 10:12