我在 Lubuntu 18.04 上安装了 openjdk
$ sudo apt install openjdk-8-jdk
/usr/lib/jvm/
它为 openjdk-8安装的文件和目录是
$ ls -la /usr/lib/jvm
total 28
drwxr-xr-x 5 root root 4096 May 20 23:08 .
drwxr-xr-x 109 root root 4096 May 20 22:52 ..
lrwxrwxrwx 1 root root 20 Apr 26 11:59 java-1.8.0-openjdk-amd64 -> java-8-openjdk-amd64
-rw-r--r-- 1 root root 2600 Apr 26 11:59 .java-1.8.0-openjdk-amd64.jinfo
drwxr-xr-x 7 root root 4096 May 20 23:08 java-8-openjdk-amd64
这三个文件和目录分别有什么用途?
具体来说,这两个目录有什么区别?
$ ls -l /usr/lib/jvm/java-1.8.0-openjdk-amd64/ /usr/lib/jvm/java-8-openjdk-amd64/
/usr/lib/jvm/java-1.8.0-openjdk-amd64/:
total 20
lrwxrwxrwx 1 root root 22 Apr 26 11:59 ASSEMBLY_EXCEPTION -> jre/ASSEMBLY_EXCEPTION
drwxr-xr-x 2 root root 4096 May 20 23:08 bin
lrwxrwxrwx 1 root root 41 Apr 26 11:59 docs -> ../../../share/doc/openjdk-8-jre-headless
drwxr-xr-x 3 root root 4096 May 20 23:08 include
drwxr-xr-x 5 root root 4096 May 20 23:08 jre
drwxr-xr-x 3 root root 4096 May 20 23:08 lib
drwxr-xr-x 4 root root 4096 May 20 23:08 man
lrwxrwxrwx 1 root root 20 Apr 26 11:59 src.zip -> ../openjdk-8/src.zip
lrwxrwxrwx 1 root root 22 Apr 26 11:59 THIRD_PARTY_README -> jre/THIRD_PARTY_README
/usr/lib/jvm/java-8-openjdk-amd64/:
total 20
lrwxrwxrwx 1 root root 22 Apr 26 11:59 ASSEMBLY_EXCEPTION -> jre/ASSEMBLY_EXCEPTION
drwxr-xr-x 2 root root 4096 May 20 23:08 bin
lrwxrwxrwx 1 root root 41 Apr 26 11:59 docs -> ../../../share/doc/openjdk-8-jre-headless
drwxr-xr-x 3 root root 4096 May 20 23:08 include
drwxr-xr-x 5 root root 4096 May 20 23:08 jre
drwxr-xr-x 3 root root 4096 May 20 23:08 lib
drwxr-xr-x 4 root root 4096 May 20 23:08 man
lrwxrwxrwx 1 root root 20 Apr 26 11:59 src.zip -> ../openjdk-8/src.zip
lrwxrwxrwx 1 root root 22 Apr 26 11:59 THIRD_PARTY_README -> jre/THIRD_PARTY_README