Difference between revisions of "Find and Locate"

From Free Knowledge Base- The DUCK Project: information for everyone
Jump to: navigation, search
(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...")
(No difference)

Revision as of 10:12, 28 March 2019

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)