Git bash:找不到 whereis 命令

Bra*_*adB 5 terminal git-bash

我在 Windows 机器上使用 git bash。除了命令之外,一切正常whereis。终端告诉我找不到命令:

$ whereis grep
bash: whereis: command not found
Run Code Online (Sandbox Code Playgroud)

我已经尝试添加C:\Program Files(x86)\Git\bin到我的路径中。

我该如何解决?

Nic*_*ela 4

where在 Windows 中使用

Linux 中使用的命令whereis等于where为 Windows 98 的 Windows 工具包提供的命令,默认情况下包含在 Server 2003、Vista 和更新版本中:

$ where git
C:\Program Files\Git\mingw64\bin\git.exe
C:\Users\MyUser\scoop\shims\git.exe
Run Code Online (Sandbox Code Playgroud)

更多信息

在适用于 Windows 的 gitbash 中添加 .exe

当您想要 gitbash 中类型的可执行文件时,.exe您应该添加以下路径关系:

 C:\Program Files\Git\mingw64\bin\<EXE>.exe
Run Code Online (Sandbox Code Playgroud)

或者在有 ubication 的文件夹git但始终应该添加的地方mingw64\bin\

whereis在 Windows 中安装

下载和安装脚本

运行Git BashRun As Administrator

#!/bin/bash
wget www.flounder.com/whereis.zip
unzip whereis.zip
cd mvp_tips/whereis/Debug/
cp whereis.exe 'C:\Program Files\Git\mingw64\bin\'
source ~/.bashrc
whereis whereis
Run Code Online (Sandbox Code Playgroud)