Free preview. This lesson is open to everyone. Enroll to get the whole course and keep track of your progress.

Lesson

1.2 Objective review

Kernel modules

Most drivers are loadable kernel modules (.ko or compressed .ko.xz / .ko.zst files under /lib/modules/$(uname -r)/). They can be loaded and removed without a reboot.

Command What it does
lsmod Lists loaded modules, their size and which modules use them (reads /proc/modules)
modinfo <name> Shows a module's file, description, license, dependencies and parameters
modprobe <name> Loads a module and its dependencies, using modules.dep. Preferred way to load
modprobe -r <name> Removes a module and unused dependencies
insmod <path.ko> Loads one module file by path. Does not resolve dependencies
rmmod <name> Removes one module. Fails if the module is in use
depmod Rebuilds modules.dep, the dependency map modprobe relies on. Run after adding a module by hand

Configuration:

  • /etc/modprobe.d/*.conf: options and blacklists, for example options e1000e InterruptThrottleRate=3000 or blacklist nouveau. A blacklist stops automatic loading by alias; install <name> /bin/false blocks it completely.
  • /etc/modules-load.d/*.conf: modules to load at every boot, one name per line (read by systemd-modules-load).
  • Parameters of a loaded module appear in /sys/module/<name>/parameters/.

Device management and hardware inventory

Devices are detected by the kernel, published in /sys, and given device files in /dev by udev (systemd-udevd), which applies rules from /usr/lib/udev/rules.d/ and /etc/udev/rules.d/. udevadm info and udevadm monitor inspect it.

Command Shows
dmesg The kernel ring buffer: driver messages, hardware errors, USB plug events. dmesg -T adds readable times, dmesg -w follows
lspci PCI devices (network cards, GPUs, storage controllers). -k shows the driver in use, -v more detail
lsusb USB devices with vendor and product IDs. -t shows a tree
lscpu CPU architecture, cores, threads, sockets, caches, virtualization flags
lsmem Memory blocks and whether they are online
lshw Full hardware inventory (-short, -class network). Run as root for complete output
dmidecode Reads the SMBIOS/DMI table: system vendor, model, serial number, BIOS version, memory slots (-t memory)
ipmitool Talks to the server's baseboard management controller (BMC) over IPMI: power on/off, sensor readings, event log, even remotely with -I lanplus -H <bmc>
sensors (lm_sensors) Temperatures, fan speeds and voltages. Run sensors-detect once to find chips

initrd management

The initramfs must be rebuilt when you change something needed before the root filesystem is mounted: a storage driver, LVM, RAID, LUKS, or a module blacklist that must apply early.

Tool Where
dracut RHEL, Fedora, SUSE. dracut -f rebuilds the image for the running kernel; dracut -f /boot/initramfs-<ver>.img <ver> for another
mkinitrd Older wrapper (still on SUSE and older RHEL)
update-initramfs -u Debian and Ubuntu (-k all for every kernel)

lsinitrd (dracut) or lsinitramfs (Debian) list what is inside an image.

Custom hardware

  • Embedded systems: Linux on routers, appliances, IoT devices and single board computers. Typically ARM or RISC-V, flash storage, minimal userland (BusyBox), built with Yocto or Buildroot, and often read only root filesystems.
  • GPU use cases: machine learning training and inference, scientific computing, video transcoding and rendering, virtual desktop acceleration. NVIDIA GPUs need the proprietary driver or open kernel modules (blacklisting nouveau); nvidia-smi reports usage.
  • nvtop: an interactive, htop style monitor for GPU utilization, memory and processes (NVIDIA, AMD and Intel).
modprobe vs insmod

On the exam, if a module "fails with unknown symbol" errors when loaded, the cause is usually a missing dependency: use modprobe, which reads modules.dep, rather than insmod.

Course outline

1.1 Explain basic Linux concepts

Not started: 1.1 Objective review Lesson
Locked: 1.1 Practice exam Enroll to unlock Quiz

1.2 Summarize Linux device management concepts and tools

Not started: 1.2 Objective review Lesson
Locked: 1.2 Practice exam Enroll to unlock Quiz

1.3 Given a scenario, manage storage in a Linux system

Not started: 1.3 Objective review Lesson
Locked: 1.3 Practice exam Enroll to unlock Quiz

1.4 Given a scenario, manage network services and configurations on a Linux server

Locked: 1.4 Objective review Enroll to unlock Lesson
Locked: 1.4 Practice exam Enroll to unlock Quiz

1.5 Given a scenario, manage a Linux system using common shell operations

Locked: 1.5 Objective review Enroll to unlock Lesson
Locked: 1.5 Practice exam Enroll to unlock Quiz

1.6 Given a scenario, perform backup and restore operations for a Linux server

Locked: 1.6 Objective review Enroll to unlock Lesson
Locked: 1.6 Practice exam Enroll to unlock Quiz

1.7 Summarize virtualization on Linux systems

Locked: 1.7 Objective review Enroll to unlock Lesson
Locked: 1.7 Practice exam Enroll to unlock Quiz

2.1 Given a scenario, manage files and directories on a Linux system

Locked: 2.1 Objective review Enroll to unlock Lesson
Locked: 2.1 Practice exam Enroll to unlock Quiz

2.2 Given a scenario, perform local account management in a Linux environment

Locked: 2.2 Objective review Enroll to unlock Lesson
Locked: 2.2 Practice exam Enroll to unlock Quiz

2.3 Given a scenario, manage processes and jobs in a Linux environment

Locked: 2.3 Objective review Enroll to unlock Lesson
Locked: 2.3 Practice exam Enroll to unlock Quiz

2.4 Given a scenario, configure and manage software in a Linux environment

Locked: 2.4 Objective review Enroll to unlock Lesson
Locked: 2.4 Practice exam Enroll to unlock Quiz

2.5 Given a scenario, manage Linux using systemd

Locked: 2.5 Objective review Enroll to unlock Lesson
Locked: 2.5 Practice exam Enroll to unlock Quiz

2.6 Given a scenario, manage applications in a container on a Linux server

Locked: 2.6 Objective review Enroll to unlock Lesson
Locked: 2.6 Practice exam Enroll to unlock Quiz

3.1 Summarize authorization, authentication, and accounting methods

Locked: 3.1 Objective review Enroll to unlock Lesson
Locked: 3.1 Practice exam Enroll to unlock Quiz

3.2 Given a scenario, configure and implement firewalls on a Linux system

Locked: 3.2 Objective review Enroll to unlock Lesson
Locked: 3.2 Practice exam Enroll to unlock Quiz

3.3 Given a scenario, apply operating system (OS) hardening techniques on a Linux system

Locked: 3.3 Objective review Enroll to unlock Lesson
Locked: 3.3 Practice exam Enroll to unlock Quiz

3.4 Explain account hardening techniques and best practices

Locked: 3.4 Objective review Enroll to unlock Lesson
Locked: 3.4 Practice exam Enroll to unlock Quiz

3.5 Explain cryptographic concepts and technologies in a Linux environment

Locked: 3.5 Objective review Enroll to unlock Lesson
Locked: 3.5 Practice exam Enroll to unlock Quiz

3.6 Explain the importance of compliance and audit procedures

Locked: 3.6 Objective review Enroll to unlock Lesson
Locked: 3.6 Practice exam Enroll to unlock Quiz

4.1 Summarize the use cases and techniques of automation and orchestration in a Linux environment

Locked: 4.1 Objective review Enroll to unlock Lesson
Locked: 4.1 Practice exam Enroll to unlock Quiz

4.2 Given a scenario, perform automated tasks using shell scripting

Locked: 4.2 Objective review Enroll to unlock Lesson
Locked: 4.2 Practice exam Enroll to unlock Quiz

4.3 Summarize Python basics used for Linux system administration

Locked: 4.3 Objective review Enroll to unlock Lesson
Locked: 4.3 Practice exam Enroll to unlock Quiz

4.4 Given a scenario, implement version control using Git

Locked: 4.4 Objective review Enroll to unlock Lesson
Locked: 4.4 Practice exam Enroll to unlock Quiz

4.5 Summarize best practices and responsible uses of artificial intelligence (AI)

Locked: 4.5 Objective review Enroll to unlock Lesson
Locked: 4.5 Practice exam Enroll to unlock Quiz

5.1 Summarize monitoring concepts and configurations in a Linux system

Locked: 5.1 Objective review Enroll to unlock Lesson
Locked: 5.1 Practice exam Enroll to unlock Quiz

5.2 Given a scenario, analyze and troubleshoot hardware, storage, and Linux OS issues

Locked: 5.2 Objective review Enroll to unlock Lesson
Locked: 5.2 Practice exam Enroll to unlock Quiz

5.3 Given a scenario, analyze and troubleshoot networking issues on a Linux system

Locked: 5.3 Objective review Enroll to unlock Lesson
Locked: 5.3 Practice exam Enroll to unlock Quiz

5.4 Given a scenario, analyze and troubleshoot security issues on a Linux system

Locked: 5.4 Objective review Enroll to unlock Lesson
Locked: 5.4 Practice exam Enroll to unlock Quiz

5.5 Given a scenario, analyze and troubleshoot performance issues

Locked: 5.5 Objective review Enroll to unlock Lesson
Locked: 5.5 Practice exam Enroll to unlock Quiz

Full XK0-006 practice exam

Locked: About the XK0-006 exam Enroll to unlock Lesson
Locked: XK0-006 Full practice exam (90 questions) Enroll to unlock Quiz