1.启动Terminal终端工具
2.输入cd ~/ 进入当前用户的home目录
或cd /Users/YourUserName
3. 创建:
touch .bash_profile
4.打开并编辑:
open .bash_profile
5.保存关闭
6.更新:
source .bash_profile
备注:在finder中显示或隐藏Mac系统隐藏文件:
defaults write com.apple.finder AppleShowAllFiles -bool true
defaults write com.apple.finder AppleShowAllFiles -bool false
defaults write com.apple.finder AppleShowAllFiles -bool false
本文详细介绍了在Mac系统中通过Terminal终端工具启动、进入home目录、创建.bash_profile文件、编辑该文件及更新设置的步骤。同时提供了解决Finder中隐藏文件显示问题的方法。
3125

被折叠的 条评论
为什么被折叠?



