From the course: Advanced Linux: The Linux Kernel

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

Demonstration of kernel source and searching

Demonstration of kernel source and searching - Linux Tutorial

From the course: Advanced Linux: The Linux Kernel

Demonstration of kernel source and searching

- [Instructor] Let's look at kernel's source code. So I cloned the Ubuntu Noble repository like this, like we showed earlier. That took a little while. And then I got something like this and I've done a make cscope and a make tags in here and that's why I've got those cscope.files and I've got the file called tags. You can see kernel Makefile is in here. Let's see how much space this takes up. Hoo, seven gig, pretty big. And get an idea of how many tags they have in the repo here we cloned. That start with the string ubuntu dash. What did I do different? You got to capitalize the U in Ubuntu. All right. And if we look at the Makefile, we can see the version there, so forth. How long is the Makefile? Over 2000 lines long. All right. And with that kind of length, having a help in there is nice. Get an idea. Starts with cleaning targets and there's lots of stuff you can make, right? And these days you can write kernel code in Rust. So there's a bunch of Rust stuff there. Let's make a PDF…

Contents