It is sometimes important to view the installation path (address) of a software in Linux. For example, the quick start of a file is deleted, or you want to create a quick launch, or want to delete, add installation files, and so on, many places have to use the search file installation path command.
Here to introduce Linux view file installation path (address) command.
First, view the file installation path:
Since the software is installed in more than one place, all the first say to view the file installation of all the paths (addresses).
Take Oracle, for example. For example, I installed Oracle, but I do not know where the files are installed, in which folders, you can use the following command to view all the file paths
In the terminal input:
Whereis Oracle
Enter, if you have installed Oracle, will display the file installation address, such as my display (the installation address may be different)
Oracle:/usr/bin/oracle/usr/lib/oracle/usr/share/oracle/usr/share/man/man1/oracle.1.gz
As you can see, Oracle is installed in a directory.
If you do not install Oracle or the Oracle installation is unsuccessful, the file path is not displayed. Prompt Only:
Oracle
Second, the query run file path:
If you only need to query the address of the file's running file, use the following command directly (or Oracle, for example):
which Oracle
The results will show:
/usr/bin/oracle