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