@@ -281,25 +281,27 @@ Actions:
281281An applet of ` magisk ` , the MagiskSU entry point. Good old ` su ` command.
282282
283283```
284- Usage: su [options] [-] [user [argument...]]
284+ Usage: su [options] [-- ] [user [argument...]]
285285
286286Options:
287- -c, --command COMMAND Pass COMMAND to the invoked shell
287+ -s, --shell SHELL Use SHELL instead of the default /system/bin/sh
288+ -i, --interactive Force pseudo-terminal allocation
288289 -g, --group GROUP Specify the primary group
289- -G, --supp-group GROUP Specify a supplementary group.
290+ -G, --supp-group GROUP Specify a supplementary group
290291 The first specified supplementary group is also used
291- as a primary group if the option -g is not specified.
292+ as a primary group if the option -g is not specified
292293 -Z, --context CONTEXT Change SELinux context
293294 -t, --target PID PID to take mount namespace from
294- -h, --help Display this help message and exit
295- -, -l, --login Pretend the shell to be a login shell
295+ pid 0 means magisk global mount namespacen
296296 -m, -p,
297297 --preserve-environment Preserve the entire environment
298- -s, --shell SHELL Use SHELL instead of the default /system/bin/sh
299298 -v, --version Display version number and exit
300299 -V Display version code and exit
301- -mm, -M,
302- --mount-master Force run in the global mount namespace
300+ -h, --help Display this help message and exit
301+
302+ --: Force stop options parsing, and also stop when an unknown option is found
303+ User: The user to switch to (default root), it can be name or uid
304+ Argument: Pass it to the shell as is
303305```
304306
305307### resetprop
0 commit comments