网上得来终觉浅

_φ(❐_❐✧ 人丑就要多读书

导航

centos查看java安装路径

[root@iZ2zeimmhbueqwrxumh2i2Z bin]# which java
/usr/bin/java
[root@iZ2zeimmhbueqwrxumh2i2Z bin]# ls -lrt /usr/bin/java 
lrwxrwxrwx 1 root root 22 Aug  8 09:20 /usr/bin/java -> /etc/alternatives/java
[root@iZ2zeimmhbueqwrxumh2i2Z bin]# ls -lrt /etc/alternatives/java
lrwxrwxrwx 1 root root 73 Aug  8 09:20 /etc/alternatives/java -> /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.342.b07-1.el7_9.x86_64/jre/bin/java
[root@iZ2zeimmhbueqwrxumh2i2Z bin]# ls -lrt /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.342.b07-1.el7_9.x86_64/jre/bin/java
-rwxr-xr-x 1 root root 8984 Jul 27 01:59 /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.342.b07-1.el7_9.x86_64/jre/bin/java
[root@iZ2zeimmhbueqwrxumh2i2Z bin]# 

最后无法定位到新的链接就是到头了。

posted on 2022-08-08 09:27  bgtong  阅读(283)  评论(0编辑  收藏  举报