摘自:
找到java的路径
# which java
/bin/java
# file /bin/java
/bin/java: symbolic link to `/etc/alternatives/java'
当提示这是一个链接时,查询所链接文件
# file /etc/alternatives/java
/etc/alternatives/java: symbolic link to `/usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/java'
# file /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/java
/usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/java: ELF 64-bit LSB
executable, x86-64, version 1 (SYSV), dynamically linked (uses shared
libs), for GNU/Linux 2.6.32,
BuildID[sha1]=0x64834a83d08d3278c3bfd8e63378f9be375e826c, stripped
以上结果就提示这个文件是一个64bit的
阅读(1140) | 评论(0) | 转发(0) |