ubuntu16.04 viewing the installation location of the software

Source: Internet
Author: User

Taking Chromium-browser as an example

Find command
[Email protected]:~$ sudo find/-name chromium-browser
/usr/lib/chromium-browser
/usr/lib/chromium-browser/chromium-browser
/usr/bin/chromium-browser
/usr/share/doc/chromium-browser
/usr/share/lintian/overrides/chromium-browser
/usr/share/chromium-browser
Find: '/RUN/USER/1000/GVFS ': Insufficient authority
/etc/chromium-browser

Determine the installation location as "/usr/lib/chromium-browser"
Dpkg-l command

If you know that the software is installed using the Apt-get Install command, you can use this method
Dpkg-l Chromium-browser
As a result, Chromium-browser does not seem to be installed by Apt-get way.

Whereis command
[Email protected]:~$ whereis Chromium-browser
Chromium-browser:/usr/bin/chromium-browser/usr/lib/chromium-browser/etc/chromium-browser/usr/share/ Chromium-browser/usr/share/man/man1/chromium-browser.1.gz
Determine the installation location as "/usr/lib/chromium-browser"

Locate command
The effect is not ideal
Locate Chromium-browser

which command
To view the location of the execution file
[Email protected]:~$ which chromium-browser
/usr/bin/chromium-browser

Type command
To view the location of the execution file
[Email protected]:~$ type Chromium-browser
Chromium-browser is/usr/bin/chromium-browser.

ubuntu16.04 viewing the installation location of the software

Related Article

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.