Linux常用命令

rm -rf *   删除文件夹下所有文件

adb常用命令

adb device --查看设备信息

adb push <local> <remote>   - copy file/dir to device

 adb pull <remote> <local>   - copy file/dir from device

 adb install [-l] [-r] <file> - push this package file to the device and install it

                                ('-l' means forward-lock the app)

                                ('-r' means reinstall the app, keeping its data)

 adb uninstall [-k] <package> - remove this app package from the device

                                ('-k' means keep the data and cache directories)

adb wait-for-device         - block until device is online

 adb start-server            - ensure that there is a server running

 adb kill-server             - kill the server if it is running

 adb get-state               - prints: offline | bootloader | device

 adb get-product             - prints: <product-id>

 adb get-serialno            - prints: <serial-number>

 adb status-window           - continuously print device status for a specified device

 adb remount                 - remounts the /system partition on the device read-write

adb shell 下常用的命令:

ls  --查看当前目录

date  --显示当前系统时间

cat /proc/meminfo --查看内存信息

cat /proc/cpuinfo --查看cpu信息








你可能感兴趣的:(Linux常用命令)