Conventions used
There are a number of text conventions used throughout this book.
Code in text
: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "The end result is the kernel configuration file saved as .config
in the root of the kernel source tree."
A block of code is set as follows:
#include <linux/init.h>
#include <linux/module.h>
#include <linux/kernel.h>
[...]
static int __init printk_loglevels_init(void)
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
if (lotype & (1<<5)) {
pr_emerg("CPU#%d: Possible thermal failure (CPU on fire ?).\n", smp_processor_id());
}
Any command-line input or output is written as follows:
sudo apt update sudo apt upgrade sudo apt install build-essential dkms linux-headers-$(uname –r) ssh -y
Bold: Indicates a new term, an important word, or words that you see onscreen. For instance, words in menus or dialog boxes appear in bold. Here is an example: "Select System info from the Administration panel."
Tips or Important Notes
Appear like this.