MAC查找JDK的路徑
在控制檯中輸入
/usr/libexec/java_home -V
即可以看見
Matching Java Virtual Machines (2):
9.0.4, x86_64: "Java SE 9.0.4" /Library/Java/JavaVirtualMachines/jdk-9.0.4.jdk/Contents/Home
1.8.0_91, x86_64: "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home
Mac中顯示文件夾的大小
一、在Finder中查看文件夾大小:
1、Cmd+A選中當前目錄下所有文件
2、在右鍵菜單中選擇“顯示選項”或者按Cmd+J快捷鍵
3、選擇“計算所有大小”的複選框
然後文件夾的大小就會顯示出來了。
二、在Terminal中查看當前目錄下所有文件(包含文件夾)大小:
du -hs *
或者:
du -shc *
第二個命令能在最後顯示一個Total大小,即當前目錄的總大小。
git
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
zsh completions and functions have been installed to:
/usr/local/share/zsh/site-functions
Emacs Lisp files have been installed to:
/usr/local/share/emacs/site-lisp/git
Your identification has been saved in /Users/damon/.ssh/id_rsa.
Your public key has been saved in /Users/damon/.ssh/id_rsa.pub.