1
MLawliet 2019-05-30 13:28:30 +08:00 via Android 2
which java
|
2
Aresxue 2019-05-30 13:50:11 +08:00
1.java -version;
2.which java; 3.rpm -qa|grep java 4.yum list installed|grep java |
3
qwerthhusn 2019-05-30 14:00:05 +08:00
图上不都告诉你了???? `/usr/bin/java`只是一个连接,链接到的是`/etc/alternatives/java`,你再去`ll /etc/alternatives/java`啊
|
4
jiejiss 2019-05-30 15:00:12 +08:00
赞同 #1
暴力法:find / | grep java |
5
c4f36e5766583218 2019-05-30 15:13:14 +08:00
which java|xargs ls -l // 接着 ls -l 直到找到文件
sudo find / -name "java" -type f 2>/dev/null|xargs file // 可能会找出多个 java,需要你自行判断哪个是当前环境的 |