Where Linux installs the software

Source: Internet
Author: User
Use this command below:
Mysqladmin-u root-p variables

Root is your database account
You will be prompted to enter the password, enter the password for the account that is filled in above

Enter after a large table, find DataDir this line, the value behind the database is the path.

1. If the source is installed, you can use-prefix to specify the installation path, so that you can easily know the installation path of the software;

2. If the RPM package is installed, you can use Rpm-qal to check it.
It's generally installed in/usr/share and/usr/local.

You can find the file location in the system by Whereis the software name.

For example, if you want to find the eclipse file, then:

[Email protected] ~]# Whereis eclipse
Will show:
Eclipse:/usr/bin/eclipse/usr/lib/eclipse/usr/share/eclipse

There are a lot of ways, you can try it yourself.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.