How do I open a directory with Windows File Explorer through the Ubuntu Linux Terminal Subsystem?

10,090

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
Share:
10,090

Related videos on Youtube

ntruter42
Author by

ntruter42

Constantly learning, albeit slower than others. I wonder if tortoises feel depressed with the nature of their bodies. Maybe they have the temperament to match it. Maybe they have no choice. Then again, their civilization doesn't pressurize them into moving at the pace of others. I think they're alright :) I'm a human-tortoise and I have the internet speeds to match, lol. Unix, Vim, C, Python, PHP, MySQL, HTML, JavaScript. Firefox, 7z, Pot Player, Picasa, FDM, Spotify & VSCode.

Updated on September 18, 2022

Comments

  • ntruter42
    ntruter42 over 1 year

    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: