Files
cheatsheet-tldr/tldr/windows/wsl-open

30 lines
656 B
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
syntax: markdown
tags: [tldr, windows]
source: https://github.com/tldr-pages/tldr.git
---
# wsl-open
> Open a file or URL from within Windows Subsystem for Linux in the user's default Windows GUI application.
> More information: <https://gitlab.com/4U6U57/wsl-open>.
- Open the current directory in Windows Explorer:
`wsl-open {{.}}`
- Open a URL in the user's default web browser in Windows:
`wsl-open {{https://example.com}}`
- Open a specific file in the user's default application in Windows:
`wsl-open {{path o ile}}`
- Set `wsl-open` as the shell's web browser (open links with `wsl-open`):
`wsl-open -w`
- Display help:
`wsl-open -h`