adb shell chmod <mode> <file> 命令详解

修改文件权限位

命令语法
adb shell chmod <mode> <file> 注意
命令说明
修改文件权限位
示例
$ adb shell chmod 755 /data/local/tmp/run.sh
文件传输相关命令

adb shell chmod <mode> <file> 用法说明

adb shell chmod <mode> <file> 是「文件传输」分类下的常用命令,作用是:修改文件权限位。

典型用法如下:adb shell chmod 755 /data/local/tmp/run.sh。你可以查看本页上方同组的相关命令,或直接复制到终端运行。

常见问题解答

adb shell chmod <mode> <file> 是什么?
adb shell chmod <mode> <file> 用于修改文件权限位,属于「文件传输」相关命令。
adb shell chmod <mode> <file> 怎么用?
在终端执行 adb shell chmod 755 /data/local/tmp/run.sh 即可,具体参数请按实际环境调整。
还有哪些相关命令?
文件传输分类下还有 19 条相关命令,见本页上方「相关命令」。

同类工具