@@ -50,6 +50,7 @@ Exe filename is using the instance name to register. If you rename it you can re
5050Usage :
5151 <no args>
5252 - Open a new shell with your default settings.
53+ Inherit current directory (with exception that %%USERPROFILE%% is changed to $HOME).
5354
5455 run <command line>
5556 - Run the given command line in that instance. Inherit current directory.
@@ -62,22 +63,24 @@ Usage :
6263 - `--default-uid <uid>`: Set the default user uid of this instance to <uid>.
6364 - `--append-path <true|false>`: Switch of Append Windows PATH to $PATH
6465 - `--mount-drive <true|false>`: Switch of Mount drives
66+ - `--wsl-version <1|2>`: Set the WSL version of this instance to <1 or 2>
6567 - `--default-term <default|wt|flute>`: Set default type of terminal window.
6668
67- get [setting]
69+ get [setting [value] ]
6870 - `--default-uid`: Get the default user uid in this instance.
6971 - `--append-path`: Get true/false status of Append Windows PATH to $PATH.
7072 - `--mount-drive`: Get true/false status of Mount drives.
7173 - `--wsl-version`: Get the version os the WSL (1/2) of this instance.
7274 - `--default-term`: Get Default Terminal type of this instance launcher.
75+ - `--wt-profile-name`: Get Profile Name from Windows Terminal
7376 - `--lxguid`: Get WSL GUID key for this instance.
7477
75- backup [contents ]
76- - `-- tar`: Output backup. tar to the current directory .
77- - `--reg `: Output settings registry file to the current directory
78- - `--tgz `: Output backup.tar.gz to the current directory.
79- - `-- vhdx`: Output backup. ext4.vhdx to the current directory.
80- - `--vhdxgz `: Output backup.ext4.vhdx.gz to the current directory .
78+ backup [file name ]
79+ - `*. tar`: Output backup tar file .
80+ - `*.tar.gz `: Output backup tar.gz file.
81+ - `*.ext4.vhdx `: Output backup ext4.vhdx file. (WSL2 only)
82+ - `*.ext4. vhdx.gz `: Output backup ext4.vhdx.gz file. (WSL2 only)
83+ - `*.reg `: Output settings registry file .
8184
8285 clean
8386 - Uninstall that instance.
@@ -88,33 +91,33 @@ Usage :
8891
8992#### Just Run exe
9093``` cmd
91- >{InstanceName} .exe
94+ >Elementary .exe
9295[root@PC-NAME user]#
9396```
9497
9598#### Run with command line
9699``` cmd
97- >{InstanceName} .exe run uname -r
100+ >Elementary .exe run uname -r
981014.4.0-43-Microsoft
99102```
100103
101104#### Run with command line with path translation
102105``` cmd
103- >{InstanceName} .exe runp echo C:\Windows\System32\cmd.exe
106+ >Elementary .exe runp echo C:\Windows\System32\cmd.exe
104107/mnt/c/Windows/System32/cmd.exe
105108```
106109
107110#### Change Default User(id command required)
108111``` cmd
109- >{InstanceName} .exe config --default-user user
112+ >Elementary .exe config --default-user user
110113
111- >{InstanceName} .exe
114+ >Elementary .exe
112115[user@PC-NAME dir]$
113116```
114117
115118#### Set "Windows Terminal" as default terminal
116119``` cmd
117- >{InstanceName} .exe config --default-term wt
120+ >Elementary .exe config --default-term wt
118121```
119122
120123## How to setup
@@ -151,13 +154,13 @@ Execute the command below in a windows cmd terminal from the directory where Ele
151154```
152155
153156## How to backup instance
154- export to backup.tar.gz
157+ export to backup.tar.gz (WSL1 or 2)
155158``` cmd
156- >Elementary.exe backup --tgz
159+ >Elementary.exe backup backup.tar.gz
157160```
158- export to backup.ext4.vhdx.gz
161+ export to backup.ext4.vhdx.gz (WSL2 only)
159162``` cmd
160- >Elementary.exe backup --vhdxgz
163+ >Elementary.exe backup backup.ext4.vhdx.gz
161164```
162165
163166## How to restore instance
0 commit comments