Score:0

Open CWD in File Explorer | 20.04 LTS on Windows 10

th flag

How do I open CWD in file explorer, Windows?

I have tried the following lines but without luck:

open .

explorer .

open() {
  explorer.exe `wslpath -w "$1"`
}


Score:2
hr flag

To open the current working directory from WSL in the host's Windows Explorer, you can use:

explorer.exe "$(wslpath -w "$PWD")"

More generally, a shell function to open a given directory may be written as

weopen() { explorer.exe "$(wslpath -w "$1")"; }

You can then use

weopen .

to open the current directory, .

Score:0
th flag

Found a work around way.

Open File Explorer locations, and type "bash" into directory bar.

Then in each bash window, type:

echo $PWD

Copy and paste this output (paste into terminal by right-clicking).

then in the one you want to copy to:

cp <source/nameoffile> <location>
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.