Find and Locate

From Free Knowledge Base- The DUCK Project: information for everyone
Revision as of 10:12, 28 March 2019 by Admin (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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)