Find Files And Folders On Linux

Posted one year ago

Look for the term “domlogs” from the root directory.


find / -name "domlogs"

Search within the current and all sub-directories for a file called “name.txt”


find . -name name.txt

Search all directorys “/” for files “-type f” ignore case “-iname” for files that begin with “test”


 find / -type f -iname 'test*'

  • -maxdepth X Search the current directory and how many levels deep you want to search
  • -not Return only results that do no match our case
  • -type f Return files
  • -type d Return directories