Mac终端Terminal使用

时间:2021-05-23 12:50:43

一、system_profiler SPUSBDataType 查看Mac系统所有USB设备信息

二、[写入内容到指定文件]

echo "0x1bbb" > ~/.android/adb_usb.ini(~/代表所有符合条件的上级目录)

 三、[配置环境变量]

打开或创建配置环境变量文件

cd ~

touch .bash_profile

open -e .bash_profile (关键是这一句,直接用本文编辑器打开bash_profile,如果没有会创建该文件)

source .bash_profile(更新刚配置的环境变量,使配置生效)

Mac终端Terminal使用 以下是adb和gradle环境变量的配置Mac终端Terminal使用

 

[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)