Find and Locate

From Free Knowledge Base- The DUCK Project
Revision as of 09:12, 28 March 2019 by Admin (talk | contribs) (Created page with "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 be...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to 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)