Find the path of the program in Ubuntu

Source: Internet
Author: User
The following describes how to quickly locate the installation path of Debian system software. Dpkg is also used to install, uninstall, and supply information related to the. deb software package. Dpkgisatooltoinstall, build, removeandmanageDebianpackages. These two functions are mainly used:-L | -- listfiles & lt; package & gt;... & nbs

The following describes how to quickly locate the installation path of Debian system software.

Dpkg is also used to install, uninstall, and supply information related to the. deb software package.

Dpkg is a tool to install, build, remove and manage Debian packages.

These two functions are mainly used:

-L | -- listfiles ... List files 'owners' by package (s ).

-L | -- list [ ...] List packages concisely.

Example: we want to find the path of chrome

Www.linuxidc.com @ Ubuntu :~ /Myscript $ dpkg-l | grep chrome

Ii google-chrome-stable 22.0.1229.94-r161065 The web browser from Google

Ii xserver-xorg-video-openchrome 1:0. 2.904 + svn1050-1ubuntu0.1 X. Org X server -- VIA display driver

In this way, we can find the correct package name, and then use the package name to find the address:

Www.linuxidc.com @ ubuntu :~ /Myscript $ dpkg-L google-chrome-stable
/.
/Usr
/Usr/bin
/Usr/share
/Usr/share/applications
/Usr/share/menu
/Usr/share/menu/google-chrome.menu
/Usr/share/gnome-control-center
/Usr/share/gnome-control-center/default-apps
/Usr/share/gnome-control-center/default-apps/google-chrome.xml
/Usr/share/man
/Usr/share/man/man1
/Usr/share/man/man1/google-chrome.1
/Usr/share/doc
/Usr/share/doc/google-chrome
/Usr/share/doc/google-chrome/changelog.gz
/Etc
/Etc/cron. daily
/Etc/cron. daily/google-chrome
/Opt
Partial results are omitted below

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

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.