... | ... | @@ -150,12 +150,35 @@ The path for that is `\\wsl$`. |
|
|
|
|
|
If you start Explorer directly from Windows surface you can write in the headline of the Explorer `\\wsl$` and start navigating from the root-directory into WSL. You find your home-directory `\\wsl$\Ubuntu-22.04\home` if you have Ubuntu-22.04 installation.
|
|
|
|
|
|
With that variant of explorer
|
|
|
## Multiple terminal-windows
|
|
|
|
|
|
When you klick on Windows start-button and search Ubuntu you find the Ubuntu WSL named as something like "Ubuntu 22.04.1 LTS" together with Ubuntu logo. You may pin it to your taskbar. But by clicking on this icon you can always open only one window.
|
|
|
But you can open PowerShell multiple times. By starting a `PowerShell` and enter within that `wsl ~` you will get another WSL terminal.
|
|
|
|
|
|
```
|
|
|
ps -x
|
|
|
```
|
|
|
|
|
|
show now multiple instances of your shell.
|
|
|
|
|
|
## Enabling cut&paste for terminals, changing Font size
|
|
|
|
|
|
Klick on the logo of your terminal-window to get a menu. Click then on `Properties`. Under `Options` you can then enable `Use Ctrl+Shift+C/V as Copy/Paste`. With `Ctrl-Shift+c` you can copy something to clipboard and with `Ctrl+Shift+V` you can paste.
|
|
|
Klick then to `Font` in the logo-menu to make your settings for font. You might repeat the settings also for PowerShell instances.
|
|
|
When you mark something with your mouse with hitting the key `<enter>`.
|
|
|
|
|
|
## Terminal multiplex
|
|
|
|
|
|
Another solution to run more shells and work efficiently is `tmux`. Do
|
|
|
```
|
|
|
sudo apt update
|
|
|
sudo apt install tmux
|
|
|
```
|
|
|
if it is not yet as command available. This [guide](https://www.hostinger.com/tutorials/tmux-beginners-guide-and-cheat-sheet/) shows you how to work with tmux.
|
|
|
|
|
|
## Editor
|
|
|
|
|
|
* You need an editor for writing your codelines. Depending on your resources and what you intend to do you have several choices. A fairly wide spread editor in the Linux world with different modes but with a steep learning curve [vim](https://en.wikipedia.org/wiki/Vim\_(text_editor)) is provided inside the WSL. You can start it by typing
|
|
|
* You need an editor for writing your code. Depending on your resources and what you intend to do you have several choices. A fairly wide spread editor in the Linux world with different modes but with a steep learning curve [vim](https://en.wikipedia.org/wiki/Vim\_(text_editor)) is provided inside the WSL. You can start it by typing
|
|
|
|
|
|
```
|
|
|
vim # or
|
... | ... | |