· mac檢視檔案encoding
#檢視編碼
vi 檔案路徑
: set fileencoding
#更改編碼
iconv -f utf-8 -t gbk
檔案路徑 > 新檔案路徑
· mac 下更新 .bash_profile 檔案
#配置全局變量
1、打開terminal(終端)
2、cd ~ ( 進入目前使用者的home目錄)
3、open .bash_profile (打開.bash_profile檔案)
4、直接更改彈出的.bash_profile檔案内容
5、command + s 儲存檔案,然後關閉
6、在terminal(終端)中輸入 source .bash_profile (使用剛才更新之後的内容)
· mac 打開/usr/local目錄
Mac下/usr/local目錄預設是對于Finder是隐藏,如果需要到/usr/local下去,打開Finder,然後使用command+shift+G,在彈出的目錄中填寫/usr/local就可以了。
· mac 顯示/不顯示隐藏檔案
顯示
defaults write com.apple.finder AppleShowAllFiles -bool true
不顯示
defaults write com.apple.finder AppleShowAllFiles -bool false
更快捷辦法:
打開個人根目錄,同時選擇 shift+cmmand+.
持續更新...