@@ -51,6 +51,7 @@ Exe filename is using the instance name to register. If you rename it you can re
51
51
Usage :
52
52
<no args>
53
53
- Open a new shell with your default settings.
54
+ Inherit current directory (with exception that %%USERPROFILE%% is changed to $HOME).
54
55
55
56
run <command line>
56
57
- Run the given command line in that instance. Inherit current directory.
@@ -63,22 +64,24 @@ Usage :
63
64
- `--default-uid <uid>`: Set the default user uid of this instance to <uid>.
64
65
- `--append-path <true|false>`: Switch of Append Windows PATH to $PATH
65
66
- `--mount-drive <true|false>`: Switch of Mount drives
67
+ - `--wsl-version <1|2>`: Set the WSL version of this instance to <1 or 2>
66
68
- `--default-term <default|wt|flute>`: Set default type of terminal window.
67
69
68
- get [setting]
70
+ get [setting [value] ]
69
71
- `--default-uid`: Get the default user uid in this instance.
70
72
- `--append-path`: Get true/false status of Append Windows PATH to $PATH.
71
73
- `--mount-drive`: Get true/false status of Mount drives.
72
74
- `--wsl-version`: Get the version os the WSL (1/2) of this instance.
73
75
- `--default-term`: Get Default Terminal type of this instance launcher.
76
+ - `--wt-profile-name`: Get Profile Name from Windows Terminal
74
77
- `--lxguid`: Get WSL GUID key for this instance.
75
78
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 .
82
85
83
86
clean
84
87
- Uninstall that instance.
@@ -89,33 +92,33 @@ Usage :
89
92
90
93
#### Just Run exe
91
94
``` cmd
92
- >{InstanceName} .exe
95
+ >Mint .exe
93
96
[root@PC-NAME user]#
94
97
```
95
98
96
99
#### Run with command line
97
100
``` cmd
98
- >{InstanceName} .exe run uname -r
101
+ >Mint .exe run uname -r
99
102
4.4.0-43-Microsoft
100
103
```
101
104
102
105
#### Run with command line with path translation
103
106
``` cmd
104
- >{InstanceName} .exe runp echo C:\Windows\System32\cmd.exe
107
+ >Mint .exe runp echo C:\Windows\System32\cmd.exe
105
108
/mnt/c/Windows/System32/cmd.exe
106
109
```
107
110
108
111
#### Change Default User(id command required)
109
112
``` cmd
110
- >{InstanceName} .exe config --default-user user
113
+ >Mint .exe config --default-user user
111
114
112
- >{InstanceName} .exe
115
+ >Mint .exe
113
116
[user@PC-NAME dir]$
114
117
```
115
118
116
119
#### Set "Windows Terminal" as default terminal
117
120
``` cmd
118
- >{InstanceName} .exe config --default-term wt
121
+ >Mint .exe config --default-term wt
119
122
```
120
123
121
124
## How to setup
@@ -152,13 +155,13 @@ Execute the command below in a windows cmd terminal from the directory where Min
152
155
```
153
156
154
157
## How to backup instance
155
- export to backup.tar.gz
158
+ export to backup.tar.gz (WSL1 or 2)
156
159
``` cmd
157
- >Mint.exe backup --tgz
160
+ >Mint.exe backup backup.tar.gz
158
161
```
159
- export to backup.ext4.vhdx.gz
162
+ export to backup.ext4.vhdx.gz (WSL2 only)
160
163
``` cmd
161
- >Mint.exe backup --vhdxgz
164
+ >Mint.exe backup backup.ext4.vhdx.gz
162
165
```
163
166
164
167
## How to restore instance
0 commit comments