Sometimes, after installing a software with Apt-get install, you don't know where the installation path of the software is. How to find out the installation path of the software?
Below we java this software for example, find out Ubuntu 14.04 above Java installation path.
1. First java-version, the output information shows that Java is actually installed
2. Whereis Java, output information to see where the path is
3. ls-l/usr/bin/java See if this is a soft connection, find the path that the soft connection points to
Find out the output information, display or a soft connection, continue to find, Ls-l/etc/alternatives/java
Find out the output information, display or a soft connection, continue to find, Ls/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java
This is the real file path, and here we find the path address of Java.
----------------------------------------------------------------------------------
Reference: http://www.blogjava.net/paulwong/archive/2014/05/04/413199.html
Sometimes I don't know where Java is installed. Whereis java command does not know Java is a true installation path
Can be viewed by update-alternatives--config java command
[Email protected]: ~$ update-alternatives--config java
There is only one alternative in link Group Java:/usr/lib/jvm/java-7-oracle/jre/bin/java
Nothing to configure.
[Email protected]: ~$
Or This method can also:
Go to the appropriate directory: Cd/usr/bin
See where Java is linked: Ls-l java
Ubuntu 14.04 Viewing the installation path for Java