命令查找文件夹
-
如何用命令快速查找文件夹
在 Windows 中使用 dir /s /ad “文件夹名” 命令(CMD)或 Get-ChildItem -Path “路径” -Directory -Recurse -Filter “*名*”(PowerShell),在 Linux/macOS 中使用 find /搜索路径 -type d -name “文件夹名” 命令,星号 * 可匹配任意字符。
在 Windows 中使用 dir /s /ad “文件夹名” 命令(CMD)或 Get-ChildItem -Path “路径” -Directory -Recurse -Filter “*名*”(PowerShell),在 Linux/macOS 中使用 find /搜索路径 -type d -name “文件夹名” 命令,星号 * 可匹配任意字符。