{"rsdb":{"rid":"387128","subhead":"","postdate":"0","aid":"269725","fid":"98","uid":"1","topic":"1","content":"
\n

\u4e00\u3001\u6587\u4ef6\u64cd\u4f5c\u76f8\u5173\u547d\u4ee4<\/h1> \n

1.\u6587\u4ef6\u64cd\u4f5c\u547d\u4ee4<\/h2> \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\u5b50\u547d\u4ee4<\/th>\n \u53c2\u6570<\/th>\n \u8bf4\u660e<\/th>\n <\/tr> \n
cd<\/td> \n \u65e0<\/td> \n \u8fdb\u5165\u76ee\u5f55<\/td> \n <\/tr> \n
cat<\/td> \n [-beflnstuv] [-B bsize] [file...]<\/td> \n \u67e5\u770b\u6587\u4ef6\u5185\u5bb9
-n\uff1a\u663e\u793a\u884c\u53f7
-b\uff1a\u663e\u793a\u884c\u53f7\uff0c\u4f46\u4f1a\u5ffd\u7565\u7a7a\u884c
-s\uff1a\u663e\u793a\u884c\u53f7\uff0c\u8fde\u7eed\u7a7a\u884c\u6807\u8bb0\u4e3a\u4e00\u884c<\/td> \n <\/tr> \n
df<\/td> \n \u65e0<\/td> \n \u5217\u51fa\u5206\u533a\u5217\u8868<\/td> \n <\/tr> \n
du<\/td> \n [-H] [-L] [-P] [-a] [-d depth] [-s] [-cghikmnrx] [file...]<\/td> \n \u67e5\u8be2\u6587\u4ef6\u6216\u76ee\u5f55\u7684\u78c1\u76d8\u4f7f\u7528\u7a7a\u95f4<\/td> \n <\/tr> \n
ls<\/td> \n [-a] [-i] [-l] [-n] [-s]<\/td> \n \u5217\u51fa\u76ee\u5f55\u5185\u5bb9
-a\uff1a\u5217\u51fa\u6240\u6709\u6587\u4ef6\uff0c\u5305\u62ec\u9690\u85cf\u6587\u4ef6
-i\uff1a\u8f93\u51fa\u6587\u4ef6\u7684i\u8282\u70b9\u7684\u7d22\u5f15\u4fe1\u606f
-l\u5217\u51fa\u6587\u4ef6\u7684\u8be6\u7ec6\u4fe1\u606f
-n\uff1a\u7528\u6570\u5b57\u7684GUID\u4ee3\u66ff\u540d\u79f0
-s\uff1a\u8f93\u51fa\u8be5\u6587\u4ef6\u7684\u5927\u5c0f<\/td> \n <\/tr> \n
grep<\/td> \n [-abcDEFGHhliJLlmnOoPqRSsUVvwxZz]
[-A num]
[-B num]
[-C[num]
[-e pattern]
[-f file]
[--binary-files=value]
[--color=when]
[--context=num]
[--directories=action]
[--lable]
[--line-buffered]
[pattern]                             [file...]<\/td> \n
\u6307\u5b9a\u6587\u4ef6\u4e2d\u641c\u7d22\u7279\u5b9a\u7684\u5185\u5bb9\uff0c\u5e76\u5c06\u542b\u6709\u8fd9\u4e9b\u5185\u5bb9\u7684\u884c\u6807\u51c6\u8f93\u51fa<\/td> \n <\/tr> \n
mkdir<\/td> \n -p\uff0c-parents<\/td> \n \u521b\u5efa\u76ee\u5f55
-p\uff0c--parents\uff1a\u9012\u5f52\u521b\u5efa\u76ee\u5f55<\/td> \n <\/tr> \n
touch<\/td> \n touch [-alm] [-t YYYYMMDD [.HHMMSS]] < file ><\/td> \n \u521b\u5efa\u6587\u4ef6<\/td> \n <\/tr> \n
rm<\/td> \n rm [-f\\|-i][-dPRrvWx]file<\/td> \n \u5220\u9664\u6587\u4ef6
-f\uff1a\u5f3a\u5236\u5220\u9664\u6587\u4ef6\uff0c\u7cfb\u7edf\u4e0d\u63d0\u793a
-i\uff1a\u4ea4\u4e92\u5f0f\u5220\u9664\uff0c\u5220\u9664\u524d\u63d0\u793a
-d\uff1a\u6539\u53d8\u786c\u8fde\u63a5\u6570\u636e\u5220\u62100\uff0c\u5220\u9664\u8be5\u6587\u4ef6
-r:\u5f3a\u5236\u5220\u9664\u6587\u4ef6\u5939\u5305\u62ec\u91cc\u9762\u7684\u6587\u4ef6<\/td> \n <\/tr> \n
mv<\/td> \n mv[-fiv]source target<\/td> \n \u79fb\u52a8\u6587\u4ef6\uff08\u76f8\u5f53\u4e8e\u526a\u5207\uff09
-f\uff1a\u5f3a\u5236\u79fb\u52a8\uff0c\u82e5\u6587\u4ef6\u5df2\u7ecf\u5b58\u5728\u76ee\u6807\u5219\u76f4\u63a5\u8986\u76d6
-i\uff1a\u82e5\u76ee\u6807\u6587\u4ef6\u5df2\u7ecf\u5b58\u5728\uff0c\u4f1a\u8be2\u95ee\u662f\u5426\u8986\u76d6<\/td> \n <\/tr> \n
rmdir<\/td> \n rmdir[-p] directory<\/td> \n \u5220\u9664\u76ee\u5f55
-p\uff1a\u9012\u5f52\u5220\u9664\u76ee\u5f55\uff0c\u53ea\u80fd\u5220\u9664\u7a7a\u76ee\u5f55<\/td> \n <\/tr> \n
dd<\/td> \n dd[operand...]
dd if =source of=targe<\/td> \n
\u590d\u5236\u6587\u4ef6<\/td> \n <\/tr> \n <\/tbody> \n <\/table> \n

2.\u6587\u4ef6\u6743\u9650\u547d\u4ee4\u4e0e\u5176\u4ed6\u6587\u4ef6\u547d\u4ee4<\/h2> \n \n \n \n \n \n \n \n \n \n \n
\u5b50\u547d\u4ee4<\/th>\n \u53c2\u6570<\/th>\n \u8bf4\u660e<\/th>\n <\/tr> \n
chomd<\/td> \n chomd[OPTION]< MODE > < FILE ><\/td> \n \u6587\u4ef6\u6743\u9650\u4fee\u6539
-R\uff1a\u9012\u5f52\u6539\u53d8\u6587\u4ef6\u548c\u76ee\u5f55
-h\uff1a\u4e0d\u9075\u5faa\u7b26\u53f7\u8fde\u63a5<\/td> \n <\/tr> \n
chown<\/td> \n chown[-R[-H\\|-L\\|-P]] [-fhv]
owner : group | owner | : group file<\/td> \n
\u66f4\u6539\u67d0\u4e2a\u6587\u4ef6\u6216\u76ee\u5f55\u7684\u5c5e\u4e3b\u548c\u5c5e\u7ec4<\/td> \n <\/tr> \n
md5<\/td> \n md5 file...<\/td> \n \u67e5\u8be2\u6587\u4ef6\u7684MD5\u503c<\/td> \n <\/tr> \n
mount<\/td> \n mount [-r] [-w] [-o options] [-t type] device directory<\/td> \n \u6302\u8f7d\u8bbe\u5907\u4fe1\u606f<\/td> \n <\/tr> \n
umount<\/td> \n umount < path ><\/td> \n \u5378\u8f7d\u5206\u533a\u6302\u8f7d<\/td> \n <\/tr> \n
cmp<\/td> \n cmp[-b][-l][-n count] file1 file2<\/td> \n \u8981\u6307\u51fa\u4e24\u4e2a\u6587\u4ef6\u662f\u5426\u5b58\u5728\u5dee\u5f02<\/td> \n <\/tr> \n
ln<\/td> \n ln [-fhinsv] file1 file2
ln [-fhinsv] file...directory<\/td> \n
\u7528\u6765\u5728\u6587\u4ef6\u4e4b\u95f4\u521b\u5efa\u8fde\u63a5\uff0c\u521b\u5efa\u8fde\u63a5\u540e\u4e24\u4e2a\u6587\u4ef6\u4e2d\u4efb\u610f\u4e00\u4e2a\u6587\u4ef6\u6539\u53d8\u6587\u4ef6\u5185\u5bb9\u53e6\u4e00\u6587\u4ef6\u90fd\u4f1a\u76f8\u5e94\u8fdb\u884c\u540c\u6b65\u6539\u53d8<\/td> \n <\/tr> \n <\/tbody> \n <\/table> \n

3.\u547d\u4ee4\u4f7f\u7528\u5b9e\u4f8b\uff1a<\/h2> \n
\n\/\/\u8fdb\u5165\u8bbe\u5907
adb shell
\/\/\u8fdb\u5165\u6307\u5b9a\u76ee\u5f55"\/data\/local\/tmp"
cd \/data\/local\/tmp
\/\/\u67e5\u770b\u76ee\u5f55
ls
\/\/\u8fdb\u5165\u6839\u76ee\u5f55
cd \/
\/\/\u8fdb\u5165\u6307\u5b9a\u76ee\u5f55"\/data\/local\/tmp"
cd \/data\/local\/tmp
\/\/\u67e5\u770b\u5206\u533a\u5217\u8868
df
\/\/\u5728\u5f53\u524d\u76ee\u5f55\u4e0b\u521b\u5efa\u540d\u4e3a1\u7684.txt\u6587\u4ef6\uff08\u518d\u521b\u5efa\u4e2a\u4e24\u4e2a\uff0c\u547d\u540d\u4e3a2\u548c3\uff0c\u65b9\u4fbf\u540e\u9762\u7ee7\u7eed\u5b66\u4e60\u4f7f\u7528\uff09
touch 1.txt
\/\/\u5217\u51fa\u6240\u6709\u6587\u4ef6\uff08\u5305\u62ec\u9690\u85cf\u6587\u4ef6\uff09\u7684\u8be6\u7ec6\u4fe1\u606f\uff0c\u6b64\u65f6\u53ef\u4ee5\u67e5\u770b\u521a\u521a\u76841.txt\u662f\u5426\u521b\u5efa\u6210\u529f
ls -al
\/\/\u5728\u5f53\u524d\u76ee\u5f55\u4e0b\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a1\u7684\u6587\u4ef6\u5939
mkdir1
\/\/\u5217\u51fa\u6240\u6709\u6587\u4ef6\uff08\u5305\u62ec\u9690\u85cf\u6587\u4ef6\uff09\u7684\u8be6\u7ec6\u4fe1\u606f\uff0c\u6b64\u65f6\u53ef\u4ee5\u67e5\u770b\u521a\u521a\u7684\u76ee\u5f55\u6587\u4ef6\u5939\u662f\u5426\u521b\u5efa\u6210\u529f
ls -al
\/\/\u5728\u5f53\u524d\u76ee\u5f55\u4e0b\u521b\u5efa\u9012\u5f52\u76ee\u5f55\uff0c2\u4e0b\u9762\u5305\u542b3\uff0c3\u4e0b\u9762\u5305\u542b4
mkdir -p 2\/3\/4
\/\/\u56de\u5230\u4e0a\u4e00\u7ea7\u76ee\u5f55\uff0c\u8fde\u7eed\u64cd\u4f5c\u4e24\u6b21\u8ba9\u4ed6\u56de\u5230cd \/data\/local\/tmp\u76ee\u5f55\u4e0b
cd ..
\/\/\u5c061.txt\u6587\u4ef6\u79fb\u52a8\u52301\u76ee\u5f55\u4e2d\uff08\u526a\u5207\u6548\u679c\uff09
mv 1.txt 1
\/\/\u8fdb\u51651\u76ee\u5f55cd 1
\/\/\u67e5\u770b1.txt\u662f\u5426\u79fb\u52a8\u8fdb\u53bb\u4e86
ls
\/\/\u8fd4\u56de\u4e0a\u4e00\u7ea7\u76ee\u5f55
cd ..
\/\/\u5c06\u5f53\u524d\u76ee\u5f55\u4e0b\u76842.txt\u6587\u4ef6\u590d\u5236\u5230\u540d\u4e3a2\u7684\u76ee\u5f55\u4e0b\u5e76\u547d\u540d\u4e3a2.txt
dd if=2.txtof=2\/22.txt
\/\/\u8fdb\u5165\u5230\u76ee\u5f552\u4e2d
cd 2
\/\/\u67e5\u770b\u4e0a\u4e2a\u6587\u4ef6\u64cd\u4f5c\u662f\u5426\u64cd\u4f5c\u6210\u529f
ls
\/\/\u56de\u5230\u4e0a\u4e00\u7ea7\u76ee\u5f55
cd ..
\/\/\u8fdb\u51651\u76ee\u5f55
cd 1
\/\/\u5220\u9664\u5f53\u524d\u76ee\u5f55\u4e0b\u76841.txt\u6587\u4ef6
rm 1.txt
\/\/\u56de\u5230\u4e0a\u4e00\u7ea7\u76ee
cd ..
\/\/\u5220\u9664\u540d\u4e3a1\u7684\u76ee\u5f55
rmdir 1
\/\/\u67e5\u770b\u5220\u9664\u64cd\u4f5c\u662f\u5426\u5220\u9664\u6210\u529f
ls
\/\/\u67e5\u770b\u6587\u4ef6\u6743\u9650\u4fe1\u606f
la -al
\/\/\u4fee\u65392.txt\u7684\u6587\u4ef6\u6743\u9650\u4e3a\u6700\u9ad8
chomd 777 2.txt
\/\/\u67e5\u770b\u521a\u521a\u4fee\u6539\u7684\u6587\u4ef6\u6743\u9650\u4fe1\u606f\u662f\u5426\u6210\u529f
la -al
\/\/\u67e5\u770b2.txt\u6587\u4ef6\u7684md5
md5 2.txt
\/\/\u67e5\u770b\u6302\u8f7d\u8bbe\u5907\u4fe1\u606f
mount
\/\/\u5c06system\u5206\u533a\u53d8\u6210\u53ef\u8bfb\u53ef\u5199"mount -o [option] devices directory"
mount -o remount,rw \/dev\/block\/sda6 \/system
\/\/\u67e5\u770b\u521a\u521a\u7684\u4fee\u6539\u662f\u5426\u6210\u529f
mount
\/\/\u67e5\u770b\u5206\u533a\u5217\u8868
df
\/\/\u5378\u8f7d\u6389"\/storage\/sdcard"\u5206\u533a\u6302\u8f7d
umount \/storage\/sdcard
\/\/\u67e5\u770b\u521a\u521a\u7684\u5378\u8f7d\u662f\u5426\u6210\u529f
df
\/\/\u8f93\u5165\u70b9\u5185\u5bb9\u52302.txt\u4e2d
echo 333 >>2.txt
echo 222 >>2.txt
\/\/\u67e5\u770b2.txt\u6587\u4ef6
cat 2.txt
\/\/\u6307\u51fa\u4e24\u4e2a\u6587\u4ef6\u662f\u5426\u5b58\u5728\u5dee\u5f02
cmp 2.txt 3.txt
\/\/\u590d\u52362.txt\u6587\u4ef6\u5939\u5e76\u7c98\u8d34\u5230\u5f53\u524d\u76ee\u5f55\u4e2d\uff0c\u547d\u540d\u4e3a22.txt
dd if=2.txt of=22.txt
\/\/\u6307\u51fa\u4e24\u4e2a\u6587\u4ef6\u662f\u5426\u5b58\u5728\u5dee\u5f02
cmp 2.txt 3.txt
cd
\/\/\u57282\u76ee\u5f55\u4e0b\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a2o.txt\u76842\u7684\u786c\u8fde\u63a5\u6587\u4ef6\uff08\u56e0\u4e3a2\u7684\u76ee\u5f55\u4e0b\u5df2\u7ecf\u5b58\u57282.txt\u6587\u4ef6\uff0c\u4e0d\u7136\u4f7f\u7528"ln 2.txt 2"\u547d\u4ee4\u5c31\u53ef\u4ee5\u4e86\uff09
ln 2.txt 2\/2o.txt
\/\/\u8fdb\u5165\u52302\u76ee\u5f55
cd 2
\/\/\u67e5\u770b2o.txt\u6587\u4ef6\u5185\u5bb9
cat 2o.txt
\/\/\u57282o.txt\u6587\u4ef6\u4e2d\u52a0\u5165\u5185\u5bb9
echo >>2o.txt
\/\/\u8fd4\u56de\u4e0a\u4e00\u7ea7\u76ee\u5f55
cd ..
\/\/\u67e5\u770b\u8fde\u63a5\u6587\u4ef62.txt\u7684\u6587\u4ef6\u5185\u5bb9\u662f\u5426\u4e0e2o.txt\u4e00\u81f4
cat 2.txt
<\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/code><\/pre> \n

\u4e8c\u3001\u4fe1\u606f\u67e5\u8be2\u76f8\u5173\u547d\u4ee4<\/h1> \n

1.log \u76f8\u5173\u547d\u4ee4<\/h2> \n \n \n \n \n
\u5b50\u547d\u4ee4<\/th>\n \u53c2\u6570<\/th>\n \u8bf4\u660e<\/th>\n <\/tr> \n
dumpstate<\/td> \n -<\/td> \n \u7cfb\u7edf\u72b6\u6001\u4fe1\u606f\uff08\u9700\u8981root\u6743\u9650\uff09
\u5305\u62ec\u624b\u673a\u5f53\u524d\u7684\u5185\u5b58\u4fe1\u606f\u3001CP","orderid":"0","title":"adb shell\u5e38\u7528\u547d\u4ee4(\u4e00)","smalltitle":"","mid":"0","fname":"Android","special_id":"0","bak_id":"0","info":"0","hits":"44","pages":"3","comments":"0","posttime":"2019-11-20 18:11:24","list":"1574244684","username":"admin","author":"","copyfrom":"","copyfromurl":"","titlecolor":"","fonttype":"0","titleicon":"0","picurl":"https:\/\/www.cppentry.com\/upload_files\/","ispic":"0","yz":"1","yzer":"","yztime":"0","levels":"0","levelstime":"0","keywords":"adb<\/A> shell<\/A> \u5e38\u7528<\/A> \u547d\u4ee4<\/A>","jumpurl":"","iframeurl":"","style":"","template":"a:3:{s:4:\"head\";s:0:\"\";s:4:\"foot\";s:0:\"\";s:8:\"bencandy\";s:0:\"\";}","target":"0","ip":"14.17.22.33","lastfid":"0","money":"0","buyuser":"","passwd":"","allowdown":"","allowview":"","editer":"","edittime":"0","begintime":"0","endtime":"0","description":"adb shell\u5e38\u7528\u547d\u4ee4","lastview":"1575936610","digg_num":"0","digg_time":"0","forbidcomment":"0","ifvote":"0","heart":"","htmlname":"","city_id":"0"},"page":"1"}