查找一个程序的安装路径

[root@hadoop.22.51fbops.com maven]# ls -lrt /usr/bin/java
lrwxrwxrwx 1 root root 22 Dec 26 16:47 /usr/bin/java -> /etc/alternatives/java
[root@hadoop.22.51fbops.com maven]# ls -lrt /etc/alternatives/java
lrwxrwxrwx 1 root root 35 Dec 26 16:47 /etc/alternatives/java -> /usr/java/jdk1.8.0_151/jre/bin/java

posted on 2018-01-23 10:32  net2817  阅读(154)  评论(0编辑  收藏  举报

导航