Comments (9)
su
is sh
, sh
don't have -v
and -h
, so su
won't have.
from kernelsu.
oriole:/ $ su -h
KernelSU
Usage: su [options] [-] [user [argument...]]
Options:
-c, --command COMMAND
pass COMMAND to the invoked shell
-h, --help display this help message and exit
-l, --login force run in the global mount namespace
-p, --preserve-environment
preserve the entire environment
-s, --shell use SHELL instead of the default /system/bin/sh
-v, --version display version number and exit
-V display version code and exit
-M, --mount-master force run in the global mount namespace
from kernelsu.
su
is actually sh
in KernelSU, what's the use case of su -V
and su --help
?
from kernelsu.
su
is actually in KernelSU, what's the use case of and ?sh``su -V``su --help
MagiskSU Example:
OnePlus8T:/ $ su --help
MagiskSU
Usage: su [options] [-] [user [argument...]]
Options:
-c, --command COMMAND pass COMMAND to the invoked shell
-h, --help display this help message and exit
-, -l, --login pretend the shell to be a login shell
-m, -p,
--preserve-environment preserve the entire environment
-s, --shell SHELL use SHELL instead of the default /system/bin/sh
-v, --version display version number and exit
-V display version code and exit
-mm, -M,
--mount-master force run in the global mount namespace
OnePlus8T:/ $ su -h
MagiskSU
Usage: su [options] [-] [user [argument...]]
Options:
-c, --command COMMAND pass COMMAND to the invoked shell
-h, --help display this help message and exit
-, -l, --login pretend the shell to be a login shell
-m, -p,
--preserve-environment preserve the entire environment
-s, --shell SHELL use SHELL instead of the default /system/bin/sh
-v, --version display version number and exit
-V display version code and exit
-mm, -M,
--mount-master force run in the global mount namespace
OnePlus8T:/ $ su -?
su: invalid option -- ?
MagiskSU
Usage: su [options] [-] [user [argument...]]
Options:
-c, --command COMMAND pass COMMAND to the invoked shell
-h, --help display this help message and exit
-, -l, --login pretend the shell to be a login shell
-m, -p,
--preserve-environment preserve the entire environment
-s, --shell SHELL use SHELL instead of the default /system/bin/sh
-v, --version display version number and exit
-V display version code and exit
-mm, -M,
--mount-master force run in the global mount namespace
2|OnePlus8T:/ $ su -v
25.2:MAGISKSU
OnePlus8T:/ $ su -V
25200
OnePlus8T:/ $ su --version
25.2:MAGISKSU
from kernelsu.
KernelSU is not Magisk
from kernelsu.
KernelSU is not Magisk
Ubuntu Example:
user@X570:~$ su --help
Usage:
su [options] [-] [<user> [<argument>...]]
Change the effective user ID and group ID to that of <user>.
A mere - implies -l. If <user> is not given, root is assumed.
Options:
-m, -p, --preserve-environment do not reset environment variables
-w, --whitelist-environment <list> don't reset specified variables
-g, --group <group> specify the primary group
-G, --supp-group <group> specify a supplemental group
-, -l, --login make the shell a login shell
-c, --command <command> pass a single command to the shell with -c
--session-command <command> pass a single command to the shell with -c
and do not create a new session
-f, --fast pass -f to the shell (for csh or tcsh)
-s, --shell <shell> run <shell> if /etc/shells allows it
-P, --pty create a new pseudo-terminal
-h, --help display this help
-V, --version display version
For more details see su(1).
user@X570:~$ su -h
Usage:
su [options] [-] [<user> [<argument>...]]
Change the effective user ID and group ID to that of <user>.
A mere - implies -l. If <user> is not given, root is assumed.
Options:
-m, -p, --preserve-environment do not reset environment variables
-w, --whitelist-environment <list> don't reset specified variables
-g, --group <group> specify the primary group
-G, --supp-group <group> specify a supplemental group
-, -l, --login make the shell a login shell
-c, --command <command> pass a single command to the shell with -c
--session-command <command> pass a single command to the shell with -c
and do not create a new session
-f, --fast pass -f to the shell (for csh or tcsh)
-s, --shell <shell> run <shell> if /etc/shells allows it
-P, --pty create a new pseudo-terminal
-h, --help display this help
-V, --version display version
For more details see su(1).
user@X570:~$ su -?
su: invalid option -- '?'
Try 'su --help' for more information.
user@X570:~$ su -v
su: invalid option -- 'v'
Try 'su --help' for more information.
user@X570:~$ su -V
su from util-linux 2.34
user@X570:~$ su --version
su from util-linux 2.34
from kernelsu.
If you need this, please make a PR.
from kernelsu.
Worth noting root apps often depend on the output of su -v
to obtain su version information and confirm su is compatible and working, so KernelSU isn't compatible with any of them.
from kernelsu.
su is sh in KernelSU, so the version is not so important. Do you care the version when you use adb shell?su is nothing special except its uid is 0 and selinux is unrestricted.
from kernelsu.
Related Issues (20)
- [Feature] custom resetprop hiding HOT 3
- 在使用小米内核源码给米8屏幕指纹版集成KSU编译时碰到的问题 HOT 6
- [Question] How do you update Android with KernelSU? HOT 3
- Help HOT 11
- [Bug] My ram is different HOT 5
- ChromeOS M117+ is not able to use KernelSU HOT 1
- OxygenOS 14 Not Supported? HOT 5
- [Add Device]: MI 8 SE HOT 1
- Can't start ksu safe mode. 无法进入KSU安全模式 HOT 4
- Failed to mount overlayfs with Motorola Kernel (5.4.233) HOT 1
- Oooof! Not an issue, just had to vent HOT 13
- Defective "module.prop" causes obfuscation to all other installed modules
- [Feature] Build for aarch32 HOT 3
- Boot failure after installing December 2023 update on my Google Pixel 6 Pro HOT 11
- 呵 HOT 6
- color os14 无法刷入KernelSU boot后无法启动 HOT 1
- 一加12刷android14-6.1.25_2023-10变砖 HOT 23
- Not able to boot with patched boot.img on a Pixel 7 Pro HOT 3
- 自己编译 6.1.25 内核,工作中 但是显示版本16 版本过低 HOT 4
- Blocking the SIM Card (PIN SIM card) crashes the system and sends it to recovery HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kernelsu.