@@ -51,6 +51,7 @@ Exe filename is using the instance name to register. If you rename it you can re
5151Usage :
5252 <no args>
5353 - Open a new shell with your default settings.
54+ Inherit current directory (with exception that %%USERPROFILE%% is changed to $HOME).
5455
5556 run <command line>
5657 - Run the given command line in that instance. Inherit current directory.
@@ -63,22 +64,24 @@ Usage :
6364 - `--default-uid <uid>`: Set the default user uid of this instance to <uid>.
6465 - `--append-path <true|false>`: Switch of Append Windows PATH to $PATH
6566 - `--mount-drive <true|false>`: Switch of Mount drives
67+ - `--wsl-version <1|2>`: Set the WSL version of this instance to <1 or 2>
6668 - `--default-term <default|wt|flute>`: Set default type of terminal window.
6769
68- get [setting]
70+ get [setting [value] ]
6971 - `--default-uid`: Get the default user uid in this instance.
7072 - `--append-path`: Get true/false status of Append Windows PATH to $PATH.
7173 - `--mount-drive`: Get true/false status of Mount drives.
7274 - `--wsl-version`: Get the version os the WSL (1/2) of this instance.
7375 - `--default-term`: Get Default Terminal type of this instance launcher.
76+ - `--wt-profile-name`: Get Profile Name from Windows Terminal
7477 - `--lxguid`: Get WSL GUID key for this instance.
7578
76- backup [contents ]
77- - `-- tar`: Output backup. tar to the current directory .
78- - `--reg `: Output settings registry file to the current directory .
79- - `--tgz `: Output backup.tar.gz to the current directory.
80- - `-- vhdx`: Output backup. ext4.vhdx to the current directory.
81- - `--vhdxgz `: Output backup.ext4.vhdx.gz to the current directory .
79+ backup [file name ]
80+ - `*. tar`: Output backup tar file .
81+ - `*.tar.gz `: Output backup tar.gz file.
82+ - `*.ext4.vhdx `: Output backup ext4.vhdx file. (WSL2 only)
83+ - `*.ext4. vhdx.gz `: Output backup ext4.vhdx.gz file. (WSL2 only)
84+ - `*.reg `: Output settings registry file .
8285
8386 clean
8487 - Uninstall that instance.
@@ -89,33 +92,33 @@ Usage :
8992
9093#### Just Run exe
9194``` cmd
92- >{InstanceName} .exe
95+ >Mint .exe
9396[root@PC-NAME user]#
9497```
9598
9699#### Run with command line
97100``` cmd
98- >{InstanceName} .exe run uname -r
101+ >Mint .exe run uname -r
991024.4.0-43-Microsoft
100103```
101104
102105#### Run with command line with path translation
103106``` cmd
104- >{InstanceName} .exe runp echo C:\Windows\System32\cmd.exe
107+ >Mint .exe runp echo C:\Windows\System32\cmd.exe
105108/mnt/c/Windows/System32/cmd.exe
106109```
107110
108111#### Change Default User(id command required)
109112``` cmd
110- >{InstanceName} .exe config --default-user user
113+ >Mint .exe config --default-user user
111114
112- >{InstanceName} .exe
115+ >Mint .exe
113116[user@PC-NAME dir]$
114117```
115118
116119#### Set "Windows Terminal" as default terminal
117120``` cmd
118- >{InstanceName} .exe config --default-term wt
121+ >Mint .exe config --default-term wt
119122```
120123
121124## How to setup
@@ -152,13 +155,13 @@ Execute the command below in a windows cmd terminal from the directory where Min
152155```
153156
154157## How to backup instance
155- export to backup.tar.gz
158+ export to backup.tar.gz (WSL1 or 2)
156159``` cmd
157- >Mint.exe backup --tgz
160+ >Mint.exe backup backup.tar.gz
158161```
159- export to backup.ext4.vhdx.gz
162+ export to backup.ext4.vhdx.gz (WSL2 only)
160163``` cmd
161- >Mint.exe backup --vhdxgz
164+ >Mint.exe backup backup.ext4.vhdx.gz
162165```
163166
164167## How to restore instance
0 commit comments