Search code examples
windowspowershellcommand-linecommand-prompt

Windows Equivalent to Linux: Find -name


I am trying to figure out a command in the CLI which I know in Linux Ubuntu but I need to apply it in Microsoft.

Moreover, I am trying to find all files within a folder with a specific name. Particularly, I try to find all files which contain the term 'test' in their name. Here is the command which I know in Linux:

find \home\user\data -name '*test*'

Does anyone know the equivalent in the windows command line?


Solution

  • You will looking for Get-ChildItem

    Get-ChildItem C:\Test -Filter "*test*"