命令语法
adb shell chown <user>:<group> <file>注意
修改文件所有者(需 root)
示例
$ adb shell su -c 'chown shell:shell /data/local/tmp/run.sh'
adb shell chown <user>:<group> <file> 用法说明
adb shell chown <user>:<group> <file> 是「文件传输」分类下的常用命令,作用是:修改文件所有者(需 root)。
典型用法如下:adb shell su -c 'chown shell:shell /data/local/tmp/run.sh'。你可以复制到终端直接运行,或查看下方同组的相关命令。
常见问题解答
adb shell chown <user>:<group> <file> 是什么?
adb shell chown <user>:<group> <file> 用于修改文件所有者(需 root),属于「文件传输」相关命令。
adb shell chown <user>:<group> <file> 怎么用?
在终端执行
adb shell su -c 'chown shell:shell /data/local/tmp/run.sh' 即可,具体参数请按实际环境调整。还有哪些相关命令?
「文件传输」分类下还有 19 条相关命令,见下方「相关命令」。