windows - 与Linux等效的Windows:查找-name

标签 windows powershell command-line command-prompt

我正在尝试在Linux Ubuntu中知道的CLI中找到一个命令,但是我需要在Microsoft中应用它。

此外,我正在尝试查找具有特定名称的文件夹中的所有文件。特别是,我尝试查找名称中包含“test”一词的所有文件。
这是我在Linux中知道的命令:

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

有谁知道Windows命令行中的等效命令?

最佳答案

您将寻找 Get-ChildItem

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

关于windows - 与Linux等效的Windows:查找-name,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55065503/

相关文章:

c# - 免费安装程序是否可以轻松地将应用程序安装为 Windows 服务?

sql - 将参数从Powershell传递到存储过程

powershell - 如果键不存在,如何使哈希表抛出错误?

matlab - 使用 Matlab 将日志语句写入标准输出

c# - 创建控件时C#Windows窗体故障

C# Windows 通用 ListView 将按钮绑定(bind)到图标失败

c++ - 了解 CStatic 和 CWnd 以及消息路由

Azure Pipelines - 使用 PowerShell 将变量值插入到 JSON 中

python - 当 Python 从命令行运行时导入 urllib.parse 失败

linux - 有人可以帮我执行这些命令吗?