【发布时间】:2020-07-22 13:05:47
【问题描述】:
类似于我查看文件的方式,使用 adb 功能:
adb shell cat /path/to/file
我想清除一个文件,而不必进入 adb shell,像这样:
adb shell clear /path/to/file
第二个例子是一个伪代码。
【问题讨论】:
类似于我查看文件的方式,使用 adb 功能:
adb shell cat /path/to/file
我想清除一个文件,而不必进入 adb shell,像这样:
adb shell clear /path/to/file
第二个例子是一个伪代码。
【问题讨论】:
这应该清除文件,删除文件中的所有文本:
adb shell "> /path/to/file"
【讨论】: