Mac終端Terminal使用

1、system_profiler SPUSBDataType 查看Mac系統全部USB設備信息android

2、[寫入內容到指定文件]bash

echo "0x1bbb" > ~/.android/adb_usb.ini(~/表明全部符合條件的上級目錄)app

 3、[配置環境變量]編輯器

打開或建立配置環境變量文件gradle

cd ~spa

touch .bash_profileblog

open -e .bash_profile (關鍵是這一句,直接用本文編輯器打開bash_profile,若是沒有會建立該文件)it

source .bash_profile(更新剛配置的環境變量,使配置生效)class

 如下是adb和gradle環境變量的配置變量

 

[Mac顯示隱藏文件夾]

defaults write com.apple.finder AppleShowAllFiles -bool true(顯示)

defaults write com.apple.finder AppleShowAllFiles -bool false(關閉)

(或者defaults write com.apple.finder AppleShowAllFiles  YES/NO)

相關文章
相關標籤/搜索