Ubuntu – How to open a directory with Windows File Explorer through the Ubuntu Linux Terminal Subsystem

directoryfilemanagerwindows 10

I simply want to see my folder pop up in Windows File Explorer using a command like:

open ./

I've seen examples like:

nautilus ./
xdg-open ./

But I'm using Ubuntu 18.04 LTS inside of Microsoft Windows 10 and I don't think Nautilus or XDG file manager GUI's work on Windows 10. I got this error message:

$ nautilus ex00/
Unable to init server: Could not connect: Connection refused

(nautilus:17): Gtk-WARNING **: 21:51:09.385: cannot open display:

Best Answer

By explorer nicholas' answer we could use this:

$ ~/some/dir explorer.exe .

and by alias explorer.exe we can use open just like Linux with GUI:

# ~/.bash_rc or ~/.zshrc
alias open="explorer.exe"

and now you can open subsystem folder with

$ ~/some/dir open .
$ ~/some/dir open /usr/bin
Related Question