78

I would like to explore the folder in the Windows Explorer from the shell. I know a lot of people have been asking to Cmd here from a folder.

I'd like to do just the opposite and open a new window located at the current directory being browsed.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Greg K.
  • 1,005
  • 2
  • 12
  • 20

5 Answers5

201

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

explorer .
Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Piotr Perak
  • 10,718
  • 9
  • 49
  • 86
  • 1
    do you know if I type in `finder .` on a Mac it incur a new finder window? – Greg K. Oct 23 '11 at 11:31
  • 7
    Discovered it is `open .` in the terminal – Greg K. Oct 23 '11 at 23:16
  • 2
    @GraphicAgenda open will open anything. You can open PDFs, excel, etc. Really nice command. – sixtyfootersdude Apr 11 '13 at 17:29
  • 1
    @sixtyfootersdude I use it open applications, like `open -a [Application Name]`, favorite command – bren Oct 12 '16 at 01:48
  • What if I want to open a folder that is in my current directory? – tayopi Nov 02 '16 at 20:26
  • 1
    I used to use this command a lot, but I don't know why it has stoped working recently and shows the following error message: `bash: explorer: command not found`. Is there some way to fix this? – Ulysses Alves Jun 01 '17 at 12:36
  • 1
    It opens "Libraries" regardless which dir git-bash or cmd is in. @UlyssesAlves explorer.exe is in C:/Windows make sure this dir is in your PATH env variable. This doesn't work in git back – Philip Rego Dec 11 '18 at 22:55
48

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
Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
reflog
  • 7,587
  • 1
  • 42
  • 47
18

If you type cmd into to Location Bar, Windows will open up a command line within the folder you are browsing.

Umur Kontacı
  • 35,403
  • 8
  • 73
  • 96
3

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.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
1

Windows: explorer .

Mac: open .