Exploring Installed Package Files and Documentation in Debian

Find files through the package database
When a command or configuration file is unfamiliar, identify the package that provides it. Debian’s dpkg -L package-name lists files recorded for an installed package, and dpkg -S path can help identify ownership of a recorded path. Not every file belongs to a package: applications and users can create files after installation.
Read package-specific notes
Documentation under /usr/share/doc/ may describe configuration choices, changelogs or important differences from upstream software. Read the relevant material for the installed version before following a generic tutorial. When comparing packages, distinguish their source packages from the binary packages actually installed.
Avoid editing managed files blindly
Some paths are maintained by the package manager, while others contain local settings. Before replacing a file, find out whether it is generated by the application or delivered by a package. Use supported configuration mechanisms and keep a record of modifications. This makes upgrades easier to understand and helps maintainers reproduce problems when a bug report is necessary.
For related context, read package dependencies. Visit the Debian Planet homepage for more guides.