如何對一個網(wǎng)站進(jìn)行seo應(yīng)用下載app排行榜
歡迎觀看本內(nèi)容,此內(nèi)容為2024年7月29日更新,歡迎大家來一起學(xué)習(xí)
對此內(nèi)容大家有任何疑惑大家都可以私信木頭人哦
目錄
一、adb概念
二、adb命令
三、adb文件操作命令
四、Adb設(shè)備信息操作命令
五、Adb監(jiān)控手機(jī)端資源的命令
六、adb shell , adb 命令的區(qū)別:
七、adb shell命令
八、Adb shell 文件管理
九、MySQL命令+詳解
十、Rides數(shù)據(jù)庫使用+可視化+配置主從
一、adb概念
????????首先給大家介紹一下adb
????????ADB,全名Android Debug Bridge,是Android提供的一個通用的調(diào)試工具,是一個C/S架構(gòu)的命令行工具,通過這個工具,使得我們的PC能夠和Android設(shè)備來進(jìn)行通信。
二、adb命令
- adb devices ????????? #查看連接設(shè)備
- adb connect 127.0.0.1:62001 #連接設(shè)備
- adb disconnect 127.0.0.1:62001 #斷開連接
- adb version ????????? #查看設(shè)備版本
- adb install-r ?????? ? #路徑覆蓋安裝
- adb connect ... #連接設(shè)備
- adb push (路徑) ???? #本地上傳文件到模擬器
- adb pull (路徑) #模擬器下載到文件到本地
- adb disconnect #斷開設(shè)備
- adb reboot #重啟設(shè)備
- adb start-server #啟動adb服務(wù)
- adb kill-server #停止adb 服務(wù)
- adb logcat?????? #查看日志
- adb logcat -v time ??? #控制臺直接輸出日志信息
- adb logcat -c ? #清空系統(tǒng)日志
- adb install (包的整體路徑) ? #安裝程序
- adb uninstall 包名 #卸載程序
- adb uninstall -k 包名 #卸載程序但保留程序
- adb get-state #獲取設(shè)備的狀態(tài)
注:設(shè)備的狀態(tài)有 3 種,device , offline , unknown
? ? 20. adb root #獲取root權(quán)限
? ? ?21. adb unroot #恢復(fù) adbd 為非 root 權(quán)限
三、adb文件操作命令
- 復(fù)制設(shè)備里的文件到電腦:adb pull <設(shè)備里的文件路徑> [電腦上的目錄] ? (例:adb pull /sdcard/sr.mp4 ~/tmp/)
- 復(fù)制電腦里的文件到設(shè)備:adb push <電腦上的文件路徑> <設(shè)備里的目錄>
- 列出目錄內(nèi)容: adb?shell ls
- 切換目錄: adb shell cd <directory>
- 當(dāng)前目錄: adb shell pwd
- 創(chuàng)建文件夾: adb shell mkdir
- 刪除文件或目錄: adb shell rm path/file
- 復(fù)制文件: adb shell cp path/file??newpath/file
- 移動文件: adb shell mv path/file??newpath/file
- 重命名文件: adb shell rename path/oldfilename path/newfilename
四、Adb設(shè)備信息操作命令
- 查看設(shè)備型號: adb shell getprop ro.product.model
- 獲取屏幕分辨率: adb shell wm size
- 電池狀況: adb shell dumpsys battery
- 屏幕密度: adb shell wm density
- 顯示屏參數(shù): adb shell dumpsys window displays
- android_id: adb shell settings get secure android_id
- IMEI: adb shell dumpsys iphonesubinfo
- Android系統(tǒng)版本:adb shell getprop ro.build.version.release
- IP地址: adb shell ifconfig | grep Mask?或 adb shell ifconfig wlan0 ?或 ?adb shell netcfg (三個命令不一樣,一個不行試另一個)
- MAC地址: adb shell cat /sys/class/net/wlan0/address
- CPU信息: adb shell cat /proc/cpuinfo
- 內(nèi)存信息: adb shell cat /proc/meminfo
- 更多硬件和系統(tǒng)屬性:adb shell cat /system/build.prop
- 查看連接過的wifi密碼:abd root,然后?cat /data/misc/wifi/*.conf
五、Adb監(jiān)控手機(jī)端資源的命令
- 監(jiān)控內(nèi)存???? ?Adb shell dumpsys meminfo
- 監(jiān)控cpu????? ?Adb shell dumpsys cpuinfo
- 監(jiān)控顯示????? ?Adb shell dumpsys gfxinfo
- 監(jiān)控電源???? ?Adb shell dumpsys battery
- 監(jiān)控電池狀態(tài)???????Adb shell dumpsys batterystats
六、adb shell , adb 命令的區(qū)別:
1. 執(zhí)行位置不同 : adb命令 pc端或者windows命令行 ??adb shell命令:安卓系統(tǒng)內(nèi)部
2. 操作對象: adb命令 操作手機(jī),其他移動端設(shè)備,包 ??adb shell 命令,管理的是安卓系統(tǒng)本身
七、adb shell命令
- adb shell? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? #進(jìn)入linux:
- ctrl+c? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? #退出shell命令行
- adb shell pm list packages -3? ? ? ? ? ? ? ? ? ?#獲取包名
- adb shell pm list packages -s? ? ? ? ? ? ? ? ? ?#只輸出系統(tǒng)的包
- adb shell?pm list packages -u? ? ? ? ? ? ? ? ? ?#查看已經(jīng)卸載的包(uninstall)
- adb shell?pm list packages -i? ? ? ? ? ? ? ? ? ? #只輸出包和安裝信息(來源) (infomation)
- adb shell?pm list packages -f? ? ? ? ? ? ? ? ? ? #輸出包和包相關(guān)聯(lián)的文件 (file)
- adb shell?pm path <包名>? ? ? ? ? ? ? ? ? ? ? ? ?#查看、打印包的路徑
- adb shell ps |findstr 關(guān)鍵字? ? ? ? ? ? ? ? ? ? ? ?#查看進(jìn)程
- adb shell am start 頁面文件名? ? ? ? ? ? ? ? ? ?#啟動app(activity)
- adb shell am force-stop 包名? ? ? ? ? ? ? ? ? ? ?#關(guān)閉app(activity)
- adb shell top? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? #實(shí)時顯示進(jìn)程情況
- adb shell tom -p? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?#查看占用內(nèi)存前num的app顯示進(jìn)程的最大數(shù)量
- adb shell top -num? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?#刷新num次進(jìn)程后退出
- adb shell grep? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? #主要功能就是進(jìn)行字符串?dāng)?shù)據(jù)的對比
- adb shell findstr? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ???#篩選,和grep功能一樣,但它用于adb而非adb? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?shell(Adb命令)
- adb shell screencap設(shè)備存放路徑? ? ? ? ? ? ?#截屏
- adb shell kill? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?#結(jié)束進(jìn)程
- adb shell kill -9? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?#強(qiáng)制結(jié)束進(jìn)程
- adb shell df? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? #查看分區(qū)的使用情況
- adb shell du? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?#查看文件或目錄大小
- adb shell netstat? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? #顯示網(wǎng)絡(luò)信息,默認(rèn)包含參數(shù)tuwx
- adb shell netcfg? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?#網(wǎng)絡(luò)設(shè)備名字:查看網(wǎng)卡信息
- adb shell ifconfig eth1? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?#可設(shè)置網(wǎng)絡(luò)設(shè)備的狀態(tài),或是顯示目前的設(shè)置
- adb shell ping? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?#向目標(biāo)主機(jī)發(fā)送數(shù)據(jù)包,看是否能否接到響應(yīng)、? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ping-c:數(shù)據(jù)包的數(shù)量,默認(rèn)一直發(fā)包
- adb shell ping -c? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? # -c: 指定數(shù)據(jù)包的次數(shù),不加-c默認(rèn)一直發(fā)包
- adb shell ping -i 2? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? #間隔時間,默認(rèn)1秒鐘發(fā)一個數(shù)據(jù)包
- Adb shell wm size? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? #獲取屏幕分辨率
- adb shell screenrecord? ? ? ? ? ? ? ? ? ? ? ? ? ? ? #抓取手機(jī)屏幕的錄像
- Adb shell?am start -W? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? #大寫W, 該命令用于統(tǒng)計App冷起和熱啟動的時間
- adb shell monkey -p ……? ? ? ? ? ? ? ? ? ? ? ? ? #monkey命令
- adb shell getprop? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?#獲得android系統(tǒng)屬性
八、Adb shell 文件管理
- adb shell?ls /路徑? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? #指定路徑
- adb shell?ls -a? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?#顯示隱藏文件
- adb shell?ls -d? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?#只列出目錄
- adb shell?ls -r? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? #遞歸列出所有的目錄和子目錄的文件
- adb shell?ls -l? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?? ?#以詳細(xì)格式(長格式)列出目錄,子目錄,所有文件? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 的全部信息
- adb shell?pwd? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? #查看當(dāng)前所在位置(路徑)
- adb shell?ll? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?#顯示所有文件
- adb shell?cp? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?#復(fù)制
- adb shell?mv? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? #剪切/重復(fù)名
- adb shell?rm? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?#刪除
- adb shell?rm -i? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? #刪除時詢問
- adb shell?rm -rf? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?#強(qiáng)刪
- adb shell?echo >? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?#覆蓋
- adb shell?echo >>? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?#追加
- adb shell?vi,vim? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? #打開文本
- adb shell?chmod 權(quán)限 文件名? ? ? ? ? ? ? ? ? ? ? ?#更改權(quán)限
- adb shell?cat 文件? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?#查看
- adb shell?mkdir 目錄名字? ? ? ? ? ? ? ? ? ? ? ? ? ? ? #建立目錄
- adb shell?mkdir -p? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?#遞層目錄
- adb shell?touch 文件名? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? #建立文件
- adb shell?touch -t? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?#修改文件創(chuàng)造時間
- adb shell?find? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?#查找文件
- adb shell?cd? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?#改變目錄 比如:cd ?/sdcard
- adb shell?cd ..? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? #返回上層目錄
- adb shell?cd /? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?#返回到根目錄
- adb shell?cp ?-v? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? #復(fù)制目錄或文件 -v 執(zhí)行時顯示詳細(xì)信息
- adb shell cat /proc/cpuinfo? ? ? ? ? ? ? ? ? ? ? ? ? ? ?#查看cpu
- adb shell cat /proc/meminfo? ? ? ? ? ? ? ? ? ? ? ? ? ?#查看內(nèi)存
- Adb shell ps |findstr? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? #動態(tài)查看進(jìn)程運(yùn)行情況
九、MySQL命令+詳解
如果想要了解和學(xué)習(xí)MySQL數(shù)據(jù)庫的可以訪問地址
CSDN地址:https://blog.csdn.net/qq_59344199/article/details/128034135?spm=1001.2014.3001.5501
十、Rides數(shù)據(jù)庫使用+可視化+配置主從
如果想要了解和學(xué)習(xí)Rides數(shù)據(jù)庫的可以訪問地址
CSDN地址:
https://blog.csdn.net/qq_59344199/article/details/127997159?spm=1001.2014.3001.5501
這是木頭人整理的關(guān)于adb的一些命令,有什么問題歡迎大家私信
最后祝大家在計算機(jī)道路上一路長虹!!!
最后祝大家在計算機(jī)道路上一路長虹!!!
最后祝大家在計算機(jī)道路上一路長虹!!!