How to view contents of a Debian/Ubuntu Linux .deb package

Fig.03: View contents of a Debian or Ubuntu Linux .deb package using dpkg command

Fig.03: View contents of a Debian or Ubuntu Linux .deb package using dpkg command

To view contents of a Debian or Ubuntu Linux .deb package using dpkg command:
$ dpkg -c htop_2.0.1-1ubuntu1_amd64.deb
Sample outputs:

drwxr-xr-x root/root         0 2016-08-05 01:36 ./
drwxr-xr-x root/root         0 2016-08-05 01:36 ./usr/
drwxr-xr-x root/root         0 2016-08-05 01:36 ./usr/bin/
-rwxr-xr-x root/root    179448 2016-08-05 01:36 ./usr/bin/htop
drwxr-xr-x root/root         0 2016-08-05 01:36 ./usr/share/
drwxr-xr-x root/root         0 2016-08-05 01:36 ./usr/share/pixmaps/
-rw-r--r-- root/root      3488 2016-08-05 01:36 ./usr/share/pixmaps/htop.png
drwxr-xr-x root/root         0 2016-08-05 01:36 ./usr/share/applications/
-rw-r--r-- root/root      2392 2016-08-05 01:36 ./usr/share/applications/htop.desktop
drwxr-xr-x root/root         0 2016-08-05 01:36 ./usr/share/doc/
drwxr-xr-x root/root         0 2016-08-05 01:36 ./usr/share/doc/htop/
-rw-r--r-- root/root        19 2014-01-14 04:32 ./usr/share/doc/htop/AUTHORS
-rw-r--r-- root/root      1246 2016-04-14 13:52 ./usr/share/doc/htop/copyright
-rw-r--r-- root/root      1352 2016-08-05 01:36 ./usr/share/doc/htop/changelog.Debian.gz
-rw-r--r-- root/root      2156 2016-02-12 00:50 ./usr/share/doc/htop/README
drwxr-xr-x root/root         0 2016-08-05 01:36 ./usr/share/man/
drwxr-xr-x root/root         0 2016-08-05 01:36 ./usr/share/man/man1/
-rw-r--r-- root/root      4550 2016-08-05 01:36 ./usr/share/man/man1/htop.1.gz

Another option is to use apt-file list command as follows:
$ apt-file list htop
Sample outputs:

htop: /usr/bin/htop
htop: /usr/share/applications/htop.desktop
htop: /usr/share/doc/htop/AUTHORS
htop: /usr/share/doc/htop/README
htop: /usr/share/doc/htop/changelog.Debian.gz
htop: /usr/share/doc/htop/copyright
htop: /usr/share/man/man1/htop.1.gz
htop: /usr/share/pixmaps/htop.png

Examples and usage: How to extract a .deb file without opening it on Debian or Ubuntu Linux