all the available logs in a chronological way. With the
-r
option, it will reverse the order so that
newer messages are shown first. With the
-f
option, it will continuously print new log entries
as they are appended to its database. The
-u
option can limit the messages to those emitted by a
specific systemd unit (ex:
journalctl -u ssh.service
).
3.4.6. Discovering the Hardware
The kernel exports many details about detected hardware through the
/proc/
and
/sys/
virtual
filesystems. Several tools summarize those details. Among them,
lspci
(in the
pciutils package)
lists PCI devices,
lsusb
(in the
usbutils package) lists USB devices, and
lspcmcia
(in the
pcmciau-
tils package) lists PCMCIA cards. These tools are very useful for identifying the exact model of
a device. This identification also allows more precise searches on the web, which in turn, lead
to more relevant documents. Note that the
pciutils and
usbutils packages are already installed on
the base Kali system but
pcmciautils must be installed with
apt update
followed by
apt install
pcmciautils
. We will discuss more about package installation and management in section
8.2
,
“
Basic Package Interaction
” [page 181]