Lynxbee topic

Linux

Building Kernel Modules In-Tree During Kernel Compilation

Kernel modules are usually built out-of-tree, but for modules tightly coupled with kernel internals it's better to build them in-tree, as part of the kernel compilation itself, for header and config compatibility and automatic compilation during make . The example below uses linux-5.10/ as the so

Grep and Replace Strings in Source Code via the Linux Command Line

Use grep , sed , and find to search and replace strings across a codebase instead of doing it manually. Step 1: Find a String with grep -r — recursive -n — shows line numbers -w — matches whole word -e — the pattern Step 2: Replace a String in One File with sed -i — edits in place s — subs

Engineering weekly

Useful technical knowledge, not inbox noise.

Receive verified fixes, references, labs, and tools. Confirm by email; unsubscribe any time.