ubuntu命令

  1. adb push hosts etc/hosts 將hosts文件複製到手機上(覆蓋etc裏的hosts)

    錯誤:failed to copy hosts to etc/hosts: Read-only file system

    解決方法:adb remount , adb shell , chmod 777 system然後重試。

  2. 修改手機hosts文件:

    1. adb shell

    2. cat /etc/hosts

    3. exit

    4. adb pull /etc/hosts 將手機內的hosts文件pull出來

    5. adb push hosts /etc/hosts 將修改後的hosts文件push進手機



  3. 打開world: gedit &


4.  修改環境變量sudo gedit ~/.bashrc 修改完後source .bashrc

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章