【麥子學院】Linux cmd命令大全

來源:互聯網
上載者:User

標籤:android   style   http   color   io   ar   strong   sp   檔案   

pwd :print working directory。列印工作目錄即目前的目錄。

cd :change directory。切換目錄。/是linux的根目錄,eg. cd/home

ls :list  列出檔案或子目錄的資訊。三個參數-a-i -l。linux用顏色來區分檔案類別:

預設:藍色--目錄,綠色--可執行檔,紅色--壓縮檔,淺藍色--串連檔案,灰色--其他檔案

date :查看或設定日期

cat/proc/meminfo :查看記憶體資訊

cat/proc/cpuinfo :查看cpu資訊

 

Android中的常用命令

adbstart-server :啟動adb服務

adbkill-server :關閉adb服務

adbdevices :查看可用的裝置

adbuninstall com.sina.weibo :卸載應用

adbinstall *.apk :安裝應用

adb-s SH0A5PL09453 shell :進入裝置的shell(可以執行linux命令)

adb-s emulator-5554 install *.apk:安裝一個應用到指定的裝置

mksdcard300MB sdcard.iso :建立一個SD卡虛擬檔案容量300MB,名稱sdcard.iso

adbshell pm setInstallLocation 2:執行這條命令可以把apk安裝到SD卡上

adbshell pm setInstallLocation 0 :執行這條命令可以恢複將apk安裝到記憶體中

adbpush ha.mp3 /sdcard/bluetooth :把一個MP3檔案複製到記憶卡中

adb pull/data/data/com.sst.mo/databases/live d:\live : 從裝置中拉出一個檔案到電腦硬碟上

命令由IT線上教育平台——麥子學院整理。

 

【麥子學院】Linux cmd命令大全

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.