如何在你的MACOS,创建.bash_profile(隐藏文件)
2010-11-30 00:08
537 查看
A typical install of OS X won't create a .bash_profile for you.
When you want to run functions from your command line, this is a
must-have.(For ex:configure path to Android)
Start up Terminal
Type "cd ~/" to go to your home folder
Type "touch .bash_profile" to create your new file.
Edit .bash_profile with your favorite editor (or you can just type "open -e .bash_profile" to open it in TextEdit.
Add a line
(your-sdk-dir:Installation path of your android,then remove <>
)
6.OK
注:.bash_profile是属于系统文件(隐藏),可在终端输入以下命令来显示或隐藏文件(注意命令中的空格):
显示
Mac
隐藏文件的命令:defaults write com.apple.finder AppleShowAllFiles -bool true
隐藏
Mac
隐藏文件的命令:defaults write com.apple.finder AppleShowAllFiles -bool false
When you want to run functions from your command line, this is a
must-have.(For ex:configure path to Android)
Start up Terminal
Type "cd ~/" to go to your home folder
Type "touch .bash_profile" to create your new file.
Edit .bash_profile with your favorite editor (or you can just type "open -e .bash_profile" to open it in TextEdit.
Add a line
export PATH=$PATH:<your-sdk-dir>/tools
(your-sdk-dir:Installation path of your android,then remove <>
)
6.OK
注:.bash_profile是属于系统文件(隐藏),可在终端输入以下命令来显示或隐藏文件(注意命令中的空格):
显示
Mac
隐藏文件的命令:defaults write com.apple.finder AppleShowAllFiles -bool true
隐藏
Mac
隐藏文件的命令:defaults write com.apple.finder AppleShowAllFiles -bool false
相关文章推荐
- MACOS,创建.bash_profile(隐藏文件)
- MACOS,创建.bash_profile(隐藏文件)
- macOS创建修改.bash_profile配置文件
- mac如何打开更新.bash_profile文件(简短terminal命令和字体颜色)
- 如何在macos下创建文件或者文件夹的快捷方式
- Mac中找不到.bash_profile则自己创建.bash_profile文件
- mac环境下创建bash_profile文件并写入内容
- macos如何隐藏文件,显示隐藏文件
- mac下创建bash_profile文件
- “macOS终端命令下更改 profile文件后如何保存”之解决办法
- Mac OS使用技巧之一:查看Finder中的.bash_profile等系统隐藏文件
- Ubuntu 如何创建隐藏文件(.xxx文件),.gitconfig文件,kap
- 浅析linux 下的/etc/profile、/etc/bashrc、~/.bash_profile、~/.bashrc 文件
- 浅析linux 下的/etc/profile、/etc/bashrc、~/.bash_profile、~/.bashrc 文件
- 告诉你如何在Finder里面显示隐藏文件
- win7下隐藏文件(文件夹选项)如何显示
- 如何解决无法显示隐藏文件
- win8系统 如何默认显示文件扩展名和显示隐藏文件
- Mac的bash_profile文件的进入和退出指令
- linux 如何简单地隐藏文件及显示隐藏文件