在 Windows7GitBash 中,是否有一种方法可以探索当前位置的目录?

我想从 shell 中探索文件资源管理器中的文件夹。我知道很多人从一个文件夹里,向 CMD 求助。

我想做的恰恰相反,在浏览工作目录的位置打开一个新窗口。

39944 次浏览

Type start . - it will open Windows Explorer at the current location.

The start command acts like a double click, so use it to open files too:

start index.html

如果您在地址栏中键入cmd,Windows将在您正在浏览的文件夹中打开一个命令行。

To open Windows Explorer at the current folder, just enter:

explorer .

If you're coming from Mac OS X or Linux background, you can also create an alias in your .bash_profile to use the open command as you would do on other *nix environments.

Just add the following line to your ~/.bash_profile:

alias open="explorer ."

Then:

~/.bash_profile

Then you can use the open command to open the current folder.

Windows: explorer .

Mac: open .