Finder
隱藏文件
bash中輸入下列命令,可以使Finder顯示隱藏文件。
開啟:
defaults write com.apple.finder AppleShowAllFiles -bool true;killall Finder
關(guān)閉:
defaults write com.apple.finder AppleShowAllFiles -bool false;killall Finder
完整路徑
在Finder上顯示當(dāng)前文件夾的完整路徑谓苟。
開啟:
defaults write com.apple.finder _FXShowPosixPathInTitle -bool TRUE;killall Finder
關(guān)閉:
defaults delete com.apple.finder _FXShowPosixPathInTitle;killall Finder
開發(fā)配置
使用ll、la、l等ls的別名命令
在用戶目錄下的配置腳本文件(~/.zshrc 耿焊、~/.bashrc 或者 ~/.bash_profile )中添加以下內(nèi)容即可:
cd ~
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
source .zshrc
#source .bashrc
#source .bash_profile
查看Mac中JAVA_HOME路徑
/usr/libexec/java_home -V