Tweaking WSL (Windows Subsystem for Linux)

Use ‘exp’ command to open Windows Explorer

Login as root in WSL then:

touch /etc/profile.d/
nano /etc/profile.d/

Add the below lines to

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.