Tweaking WSL (Windows Subsystem for Linux)

Use ‘exp’ command to open Windows Explorer

Login as root in WSL then:

touch /etc/profile.d/explorer.sh
nano /etc/profile.d/explorer.sh

Add the below lines to explorer.sh

alias exp="explorer.exe ."

Now, reload settings using

. ~/.profile
. /etc/profile

Done. Now whenever you type exp in WSL, it will open Windows Explorer with current directory.

Share your thoughts by leaving a comment below.