常用软件
-
Paste
粘贴板 -
Snipaste
是一个简单但强大的贴图工具,同时也可以执行截屏、标注等功能。 -
iStat Menus
内存、CPU、网络监控软件
osascript
Mac使用命令行退出应用程序:
osascript -e 'quit app "WeChat.app"'
java
安装
查看 java 安装路径
cd /Library/Java/JavaVirtualMachines/
----------------------------------------------------------------------------------------------------------
drwxr-xr-x 3 root wheel 96B 4 9 10:17 jdk-10.0.2.jdk
drwxr-xr-x 3 root wheel 96B 4 9 10:15 jdk-11.jdk
drwxr-xr-x 3 root wheel 96B 4 9 10:22 jdk-12.jdk
drwxr-xr-x 3 root wheel 96B 4 9 10:23 jdk-13.jdk
drwxr-xr-x 3 root wheel 96B 4 9 10:15 jdk-14.jdk
drwxr-xr-x 3 root wheel 96B 4 9 10:19 jdk-9.0.1.jdk
drwxr-xr-x 3 root wheel 96B 1 3 10:49 jdk1.8.0_231.jdk
临时切换java版本
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_231.jdk/Contents/Home
export PATH=$JAVA_HOME/bin:$PATH
java -version
----------------------------------------------------------------------------------------------------------
java version "1.8.0_231"
Java(TM) SE Runtime Environment (build 1.8.0_231-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.231-b11, mixed mode)
永久切换java版本
echo 'export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/' >> ~/.bash_profile
source ~/.bash_profile
网友评论