Linux 内核源码(kernel source)

来源:互联网 发布:知乎 暴戾 编辑:程序博客网 时间:2024/05/22 15:56
  • 查看内核的发行版:uname -r--kernel-release

    $ uname -r4.4.0-78-generic
  • 内核源码所在的位置:/usr/src

    $ cd /usr/src$ lldrwxr-xr-x  8 root root 4096 May 21 04:57 ./drwxr-xr-x 11 root root 4096 Apr 20  2016 ../drwxr-xr-x 27 root root 4096 Feb 26 19:04 linux-headers-4.4.0-64/drwxr-xr-x  7 root root 4096 Feb 26 19:04 linux-headers-4.4.0-64-generic/drwxr-xr-x 27 root root 4096 May  1 01:10 linux-headers-4.4.0-75/drwxr-xr-x  7 root root 4096 May  1 01:10 linux-headers-4.4.0-75-generic/drwxr-xr-x 27 root root 4096 May 21 02:58 linux-headers-4.4.0-78/drwxr-xr-x  7 root root 4096 May 21 02:58 linux-headers-4.4.0-78-generic/lrwxrwxrwx  1 root root   32 Apr 28 09:39 vboxhost-5.1.22 -> ../share/virtualbox/src/vboxhost/
  • 综上,这里的内核源码路径(–kernel-source-path)即为:/usr/src/linux-headers-4.4.0-78-generic/

原创粉丝点击