欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Centos 查看java路径

程序员文章站 2022-05-09 23:41:56
...
[root@izu1gvjs3keo7az .ssh]# which java
/usr/bin/java
[root@izu1gvjs3keo7az .ssh]# ls -lrt /usr/bin/java
lrwxrwxrwx 1 root root 22 Nov  7 17:36 /usr/bin/java -> /etc/alternatives/java
[root@izu1gvjs3keo7az .ssh]# ls -lrt /etc/alternatives/java
lrwxrwxrwx 1 root root 73 Nov  7 17:36 /etc/alternatives/java -> /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.191.b12-0.el7_5.x86_64/jre/bin/java
相关标签: java路径