Where Is the Kernel Source Directory in Ubuntu?

Where Is the Kernel Source Directory in Ubuntu?
Contents

Where is my kernel source directory?

On Debian, Ubuntu and their derivatives, all kernel header files can be found under /usr/src directory. You can check if the matching kernel headers for your kernel version are already installed on your system using the following command.

Where is kernel source code in Ubuntu?

A bzip file will be downloaded at /usr/src/ containing the source code. However, ubuntu codes are taken from the orginal linux kernel which is available for download at To understand the kernel, you must start with basics of operating system.

Elena Rostova
Author

Elena Rostova

Elena Rostova holds a Master's degree in Public Health Journalism. She covers groundbreaking medical research, holistic wellness trends, mental health awareness, and nutritional science.