-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcommand-reference.golden
204 lines (125 loc) · 3.88 KB
/
command-reference.golden
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
A sandboxing file system emulator
You can think of ForkFS as a lightweight container: programs still have access to your real system
(and can therefore jump out of the sandbox), but their disk changes are re-routed to special
directories without changing the real file system. Under the hood, ForkFS is implemented as a
wrapper around OverlayFS.
Warning: we make no security claims. Do NOT use this tool with potentially malicious software.
PS: you might also be interested in Firejail: <https://firejail.wordpress.com/>.
Usage: forkfs <COMMAND>
Commands:
run Run commands inside the sandbox
sessions Manage sessions
help Print this message or the help of the given subcommand(s)
Options:
-h, --help
Print help (use `-h` for a summary)
-V, --version
Print version
---
Run commands inside the sandbox
Usage: forkfs run [OPTIONS] <COMMAND>...
Arguments:
<COMMAND>...
The command to run in isolation
Options:
-s, --session <SESSION>
The fork/sandbox to use
If it does not exist or is inactive, it will be created and activated.
[default: default]
-h, --help
Print help (use `-h` for a summary)
---
Manage sessions
Each session has its own separate view of the file system that is persistent. That is, individual
command invocations build upon each other.
Actives sessions are those that are mounted, while inactive sessions remember the changes that were
made within them, but are not ready to be used.
Note: weird things may happen if the real file system changes after establishing a session. You may
want to delete all sessions to restore clean behavior in such cases.
Usage: forkfs sessions <COMMAND>
Commands:
list List sessions
stop Unmount active sessions
delete Delete sessions
help Print this message or the help of the given subcommand(s)
Options:
-h, --help
Print help (use `-h` for a summary)
---
List sessions
`[active]` sessions are denoted with brackets while `inactive` sessions are bare.
Usage: forkfs sessions list
Options:
-h, --help
Print help (use `-h` for a summary)
---
Unmount active sessions
Usage: forkfs sessions stop [OPTIONS] <SESSIONS>...
Arguments:
<SESSIONS>...
The session(s) to operate on
Options:
-a, --all
Operate on all sessions
-h, --help
Print help (use `-h` for a summary)
---
Delete sessions
Usage: forkfs sessions delete [OPTIONS] <SESSIONS>...
Arguments:
<SESSIONS>...
The session(s) to operate on
Options:
-a, --all
Operate on all sessions
-h, --help
Print help (use `-h` for a summary)
---
Print this message or the help of the given subcommand(s)
Usage: forkfs sessions help [COMMAND]
Commands:
list List sessions
stop Unmount active sessions
delete Delete sessions
help Print this message or the help of the given subcommand(s)
---
List sessions
Usage: forkfs sessions help list
---
Unmount active sessions
Usage: forkfs sessions help stop
---
Delete sessions
Usage: forkfs sessions help delete
---
Print this message or the help of the given subcommand(s)
Usage: forkfs sessions help help
---
Print this message or the help of the given subcommand(s)
Usage: forkfs help [COMMAND]
Commands:
run Run commands inside the sandbox
sessions Manage sessions
help Print this message or the help of the given subcommand(s)
---
Run commands inside the sandbox
Usage: forkfs help run
---
Manage sessions
Usage: forkfs help sessions [COMMAND]
Commands:
list List sessions
stop Unmount active sessions
delete Delete sessions
---
List sessions
Usage: forkfs help sessions list
---
Unmount active sessions
Usage: forkfs help sessions stop
---
Delete sessions
Usage: forkfs help sessions delete
---
Print this message or the help of the given subcommand(s)
Usage: forkfs help help