Ubuntu Unleashed 2019 Edition: Covering 18.04, 18.10, 19.04

(singke) #1

grep to look for mentions of pnp in dmesg, the display message buffer log
for the Linux kernel, to see if there is any mention of a plug-and-play device:


Click here to view code image
matthew@seymour:~$ cat /var/log/dmesg | grep pnp


[               0.426212]   pnp:    PnP ACPI    init[               0.426223]   ACPI:   bus type    pnp
registered[
0.426303] pnp 00:01: [dma 4][ 0.426315] pnp 00:01: Plug and Play
ACPI device, IDs
PNP0200 (active)[ 0.426338] pnp 00:02: Plug and Play ACPI device,
IDs PNP0b00
(active)[ 0.426351] pnp 00:03: Plug and Play ACPI device, IDs
PNP0800 (active)[
0.426369] pnp 00:04: Plug and Play ACPI device, IDs PNP0c04 (active)[
0.426531] pnp
00:05: [dma 0 disabled][ 0.426568] pnp 00:05: Plug and Play ACPI
device, IDs PNP0501
(active)[ 0.426872] pnp 00:08: Plug and Play ACPI device, IDs
PNP0103 (active)[
0.427298] pnp: PnP ACPI: found 12 devices[ 0.427299] ACPI: ACPI
bus type pnp
unregistered

Here are a few of the most commonly used log files. Your system will have
many others, in addition to these:


/var/log/apport.log—Saves   information about   system  crashes
and reports
/var/log/auth.log—Saves information about system access and
authentication, including when a user does something using sudo
/var/log/boot.log—Saves information about what happens when
the computer starts up
/var/log/kern.log—Saves information from kernel messages, such
as warnings and errors
/var/log/syslog—Saves information from system events
/var/log/ufw.log—Saves information from the Ubuntu Firewall
/var/log/apt/history.log—Saves information about package
installation and removal

Notice that the last one is in its own subdirectory. Many applications create
their own directories and may even create multiple log files within their
directories.

Free download pdf